Home / Type/ Algorithm Type — netty Architecture

Algorithm Type — netty Architecture

Architecture documentation for the Algorithm type/interface in SearchRealDataBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  5d0de4ff_b85c_dd9f_9abf_db5adeda82ac["Algorithm"]
  0c42c586_7e6b_a42e_8dc3_ef1cc4273c7a["SearchRealDataBenchmark.java"]
  5d0de4ff_b85c_dd9f_9abf_db5adeda82ac -->|defined in| 0c42c586_7e6b_a42e_8dc3_ef1cc4273c7a
  style 5d0de4ff_b85c_dd9f_9abf_db5adeda82ac fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/search/SearchRealDataBenchmark.java lines 53–73

    public enum Algorithm {
        AHO_CORASIC {
            @Override
            SearchProcessorFactory newFactory(byte[] needle) {
                return AbstractMultiSearchProcessorFactory.newAhoCorasicSearchProcessorFactory(needle);
            }
        },
        KMP {
            @Override
            SearchProcessorFactory newFactory(byte[] needle) {
                return AbstractSearchProcessorFactory.newKmpSearchProcessorFactory(needle);
            }
        },
        BITAP {
            @Override
            SearchProcessorFactory newFactory(byte[] needle) {
                return AbstractSearchProcessorFactory.newBitapSearchProcessorFactory(needle);
            }
        };
        abstract SearchProcessorFactory newFactory(byte[] needle);
    }

Frequently Asked Questions

What is the Algorithm type?
Algorithm is a type/interface in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/search/SearchRealDataBenchmark.java.
Where is Algorithm defined?
Algorithm is defined in microbench/src/main/java/io/netty/microbench/search/SearchRealDataBenchmark.java at line 53.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free