Top Description Inners Fields Constructors Methods
io.netty.buffer.search

public Class BitapSearchProcessorFactory

extends AbstractSearchProcessorFactory
Class Inheritance
Imports
io.netty.util.internal.PlatformDependent

Implements Bitap string search algorithm. Use static AbstractSearchProcessorFactory#newBitapSearchProcessorFactory to create an instance of this factory. Use BitapSearchProcessorFactory#newSearchProcessor to get an instance of io.netty.util.ByteProcessor implementation for performing the actual search.
See Also
AbstractSearchProcessorFactory

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final long[]
private final long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public BitapSearchProcessorFactory.Processor
Inherited from io.netty.buffer.search.AbstractSearchProcessorFactory:
newBitapSearchProcessorFactorynewKmpSearchProcessorFactory

Field Detail

bitMasksback to summary
private final long[] bitMasks
successBitback to summary
private final long successBit

Constructor Detail

BitapSearchProcessorFactoryback to summary
pack-priv BitapSearchProcessorFactory(byte[] needle)

Method Detail

newSearchProcessorback to summary
public BitapSearchProcessorFactory.Processor newSearchProcessor()

Implements io.netty.buffer.search.SearchProcessorFactory.newSearchProcessor.

Returns a new Processor.

Annotations
@Override
io.netty.buffer.search back to summary

public Class BitapSearchProcessorFactory.Processor

extends Object
implements SearchProcessor
Class Inheritance
All Implemented Interfaces
io.netty.buffer.search.SearchProcessor, io.netty.util.ByteProcessor

Field Summary

Modifier and TypeField and Description
private final long[]
private long
private final long

Constructor Summary

AccessConstructor and Description
pack-priv
Processor(long[] bitMasks, long successBit)

Method Summary

Modifier and TypeMethod and Description
public boolean
public void
reset()

Implements io.netty.buffer.search.SearchProcessor.reset.

Resets the state of SearchProcessor.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bitMasksback to summary
private final long[] bitMasks
currentMaskback to summary
private long currentMask
successBitback to summary
private final long successBit

Constructor Detail

Processorback to summary
pack-priv Processor(long[] bitMasks, long successBit)

Method Detail

processback to summary
public boolean process(byte value)

Implements io.netty.util.ByteProcessor.process.

Returns:boolean

Doc from io.netty.util.ByteProcessor.process.

true if the processor wants to continue the loop and handle the next byte in the buffer. false if the processor wants to stop handling bytes and abort the loop.

Annotations
@Override
resetback to summary
public void reset()

Implements io.netty.buffer.search.SearchProcessor.reset.

Doc from io.netty.buffer.search.SearchProcessor.reset.

Resets the state of SearchProcessor.

Annotations
@Override