Class FixedBitSVForwardIndexReaderV2
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.index.readers.forward.FixedBitSVForwardIndexReaderV2
-
- All Implemented Interfaces:
Closeable,AutoCloseable,ForwardIndexReader<ForwardIndexReaderContext>
public final class FixedBitSVForwardIndexReaderV2 extends Object implements ForwardIndexReader<ForwardIndexReaderContext>
Bit-compressed dictionary-encoded forward index reader for single-value columns. The values returned are dictionary ids.
-
-
Constructor Summary
Constructors Constructor Description FixedBitSVForwardIndexReaderV2(PinotDataBuffer dataBuffer, int numDocs, int numBitsPerValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intgetDictId(int docId, ForwardIndexReaderContext context)FieldSpec.DataTypegetStoredType()booleanisDictionaryEncoded()booleanisSingleValue()voidreadDictIds(int[] docIds, int length, int[] dictIdBuffer, ForwardIndexReaderContext context)-
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.ForwardIndexReader
createContext, getBigDecimal, getBytes, getBytesMV, getBytesMV, getDictIdMV, getDictIdMV, getDouble, getDoubleMV, getDoubleMV, getFloat, getFloatMV, getFloatMV, getInt, getIntMV, getIntMV, getLong, getLongMV, getLongMV, getNumValuesMV, getString, getStringMV, getStringMV, readValuesMV, readValuesMV, readValuesMV, readValuesMV, readValuesMV, readValuesSV, readValuesSV, readValuesSV, readValuesSV, readValuesSV
-
-
-
-
Constructor Detail
-
FixedBitSVForwardIndexReaderV2
public FixedBitSVForwardIndexReaderV2(PinotDataBuffer dataBuffer, int numDocs, int numBitsPerValue)
-
-
Method Detail
-
isDictionaryEncoded
public boolean isDictionaryEncoded()
- Specified by:
isDictionaryEncodedin interfaceForwardIndexReader<ForwardIndexReaderContext>
-
isSingleValue
public boolean isSingleValue()
- Specified by:
isSingleValuein interfaceForwardIndexReader<ForwardIndexReaderContext>
-
getStoredType
public FieldSpec.DataType getStoredType()
- Specified by:
getStoredTypein interfaceForwardIndexReader<ForwardIndexReaderContext>
-
getDictId
public int getDictId(int docId, ForwardIndexReaderContext context)- Specified by:
getDictIdin interfaceForwardIndexReader<ForwardIndexReaderContext>
-
readDictIds
public void readDictIds(int[] docIds, int length, int[] dictIdBuffer, ForwardIndexReaderContext context)- Specified by:
readDictIdsin interfaceForwardIndexReader<ForwardIndexReaderContext>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-