Home / Function/ AhoCorasicSearchProcessorFactory() — netty Function Reference

AhoCorasicSearchProcessorFactory() — netty Function Reference

Architecture documentation for the AhoCorasicSearchProcessorFactory() function in AhoCorasicSearchProcessorFactory.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  271ca4a7_3cd9_b2d2_1cc9_1936872f5be2["AhoCorasicSearchProcessorFactory()"]
  2bbcf65c_43ea_8f43_fbbd_a4d039d021d0["AhoCorasicSearchProcessorFactory"]
  271ca4a7_3cd9_b2d2_1cc9_1936872f5be2 -->|defined in| 2bbcf65c_43ea_8f43_fbbd_a4d039d021d0
  bef56ec2_3d63_5fe3_0a4b_a27b45c2ff42["linkSuffixes()"]
  271ca4a7_3cd9_b2d2_1cc9_1936872f5be2 -->|calls| bef56ec2_3d63_5fe3_0a4b_a27b45c2ff42
  style 271ca4a7_3cd9_b2d2_1cc9_1936872f5be2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/search/AhoCorasicSearchProcessorFactory.java lines 78–97

    AhoCorasicSearchProcessorFactory(byte[] ...needles) {

        for (byte[] needle: needles) {
            if (needle.length == 0) {
                throw new IllegalArgumentException("Needle must be non empty");
            }
        }

        Context context = buildTrie(needles);
        jumpTable = context.jumpTable;
        matchForNeedleId = context.matchForNeedleId;

        linkSuffixes();

        for (int i = 0; i < jumpTable.length; i++) {
            if (matchForNeedleId[jumpTable[i] >> BITS_PER_SYMBOL] >= 0) {
                jumpTable[i] = -jumpTable[i];
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does AhoCorasicSearchProcessorFactory() do?
AhoCorasicSearchProcessorFactory() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/search/AhoCorasicSearchProcessorFactory.java.
Where is AhoCorasicSearchProcessorFactory() defined?
AhoCorasicSearchProcessorFactory() is defined in buffer/src/main/java/io/netty/buffer/search/AhoCorasicSearchProcessorFactory.java at line 78.
What does AhoCorasicSearchProcessorFactory() call?
AhoCorasicSearchProcessorFactory() calls 1 function(s): linkSuffixes.

Analyze Your Own Codebase

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

Try Supermodel Free