Home / Type/ Algorithm Type — netty Architecture

Algorithm Type — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  f887cff8_29c9_d813_e46e_d5aea69c4c38["Algorithm"]
  e59aca67_2461_f589_6281_5e33ad6b15be["SearchProcessorTest.java"]
  f887cff8_29c9_d813_e46e_d5aea69c4c38 -->|defined in| e59aca67_2461_f589_6281_5e33ad6b15be
  style f887cff8_29c9_d813_e46e_d5aea69c4c38 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/search/SearchProcessorTest.java lines 30–50

    private enum Algorithm {
        KNUTH_MORRIS_PRATT {
            @Override
            SearchProcessorFactory newFactory(byte[] needle) {
                return AbstractSearchProcessorFactory.newKmpSearchProcessorFactory(needle);
            }
        },
        BITAP {
            @Override
            SearchProcessorFactory newFactory(byte[] needle) {
                return AbstractSearchProcessorFactory.newBitapSearchProcessorFactory(needle);
            }
        },
        AHO_CORASIC {
            @Override
            SearchProcessorFactory newFactory(byte[] needle) {
                return AbstractMultiSearchProcessorFactory.newAhoCorasicSearchProcessorFactory(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 buffer/src/test/java/io/netty/buffer/search/SearchProcessorTest.java.
Where is Algorithm defined?
Algorithm is defined in buffer/src/test/java/io/netty/buffer/search/SearchProcessorTest.java at line 30.

Analyze Your Own Codebase

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

Try Supermodel Free