Class BaseGuavaBloomFilterReader
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.index.readers.bloom.BaseGuavaBloomFilterReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,BloomFilterReader
- Direct Known Subclasses:
OffHeapGuavaBloomFilterReader,OnHeapGuavaBloomFilterReader
public abstract class BaseGuavaBloomFilterReader extends Object implements BloomFilterReader
Base implementation of the reader for guava bloom filter.The format of the data should be aligned with the guava bloom filter.
-
-
Field Summary
Fields Modifier and Type Field Description protected long_numBitsprotected int_numHashFunctionsprotected PinotDataBuffer_valueBuffer
-
Constructor Summary
Constructors Constructor Description BaseGuavaBloomFilterReader(PinotDataBuffer dataBuffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanmightContain(String value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.segment.spi.index.reader.BloomFilterReader
mightContain
-
-
-
-
Field Detail
-
_numHashFunctions
protected final int _numHashFunctions
-
_numBits
protected final long _numBits
-
_valueBuffer
protected final PinotDataBuffer _valueBuffer
-
-
Constructor Detail
-
BaseGuavaBloomFilterReader
public BaseGuavaBloomFilterReader(PinotDataBuffer dataBuffer)
-
-
Method Detail
-
mightContain
public boolean mightContain(String value)
- Specified by:
mightContainin interfaceBloomFilterReader
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-