Home / Class/ Processor Class — netty Architecture

Processor Class — netty Architecture

Architecture documentation for the Processor class in BitapSearchProcessorFactory.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  16b4272d_416f_2c1b_c5a7_0c305e3acdbd["Processor"]
  298973b5_8562_0860_be3e_d82e75eda59a["BitapSearchProcessorFactory.java"]
  16b4272d_416f_2c1b_c5a7_0c305e3acdbd -->|defined in| 298973b5_8562_0860_be3e_d82e75eda59a
  653b986a_9b6e_6c09_414d_426cc08bcd37["Processor()"]
  16b4272d_416f_2c1b_c5a7_0c305e3acdbd -->|method| 653b986a_9b6e_6c09_414d_426cc08bcd37
  f8240f09_2d29_7592_8242_fa6c6f29a3d9["process()"]
  16b4272d_416f_2c1b_c5a7_0c305e3acdbd -->|method| f8240f09_2d29_7592_8242_fa6c6f29a3d9
  22512938_ffc6_b270_adef_3a857052cd54["reset()"]
  16b4272d_416f_2c1b_c5a7_0c305e3acdbd -->|method| 22512938_ffc6_b270_adef_3a857052cd54

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/search/BitapSearchProcessorFactory.java lines 32–53

    public static class Processor implements SearchProcessor {

        private final long[] bitMasks;
        private final long successBit;
        private long currentMask;

        Processor(long[] bitMasks, long successBit) {
            this.bitMasks = bitMasks;
            this.successBit = successBit;
        }

        @Override
        public boolean process(byte value) {
            currentMask = ((currentMask << 1) | 1) & PlatformDependent.getLong(bitMasks, value & 0xffL);
            return (currentMask & successBit) == 0;
        }

        @Override
        public void reset() {
            currentMask = 0;
        }
    }

Frequently Asked Questions

What is the Processor class?
Processor is a class in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/search/BitapSearchProcessorFactory.java.
Where is Processor defined?
Processor is defined in buffer/src/main/java/io/netty/buffer/search/BitapSearchProcessorFactory.java at line 32.

Analyze Your Own Codebase

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

Try Supermodel Free