Home / Function/ BitapSearchProcessorFactory() — netty Function Reference

BitapSearchProcessorFactory() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  e98dbb4c_bb5f_ad68_db8e_31c85d989c9c["BitapSearchProcessorFactory()"]
  bd670f33_27c2_da7c_4505_653780f3b127["BitapSearchProcessorFactory"]
  e98dbb4c_bb5f_ad68_db8e_31c85d989c9c -->|defined in| bd670f33_27c2_da7c_4505_653780f3b127
  style e98dbb4c_bb5f_ad68_db8e_31c85d989c9c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/search/BitapSearchProcessorFactory.java lines 55–67

    BitapSearchProcessorFactory(byte[] needle) {
        if (needle.length > 64) {
            throw new IllegalArgumentException("Maximum supported search pattern length is 64, got " + needle.length);
        }

        long bit = 1L;
        for (byte c: needle) {
            bitMasks[c & 0xff] |= bit;
            bit <<= 1;
        }

        successBit = 1L << (needle.length - 1);
    }

Domain

Subdomains

Frequently Asked Questions

What does BitapSearchProcessorFactory() do?
BitapSearchProcessorFactory() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/search/BitapSearchProcessorFactory.java.
Where is BitapSearchProcessorFactory() defined?
BitapSearchProcessorFactory() is defined in buffer/src/main/java/io/netty/buffer/search/BitapSearchProcessorFactory.java at line 55.

Analyze Your Own Codebase

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

Try Supermodel Free