Class VarByteChunkForwardIndexReaderV4
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.index.readers.forward.VarByteChunkForwardIndexReaderV4
-
- All Implemented Interfaces:
Closeable,AutoCloseable,IndexReader,ForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
public class VarByteChunkForwardIndexReaderV4 extends Object implements ForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
Chunk-based raw (non-dictionary-encoded) forward index reader for values of SV variable length data types (BIG_DECIMAL, STRING, BYTES), MV fixed length and MV variable length data types.For data layout, please refer to the documentation for
VarByteChunkForwardIndexWriterV4
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVarByteChunkForwardIndexReaderV4.ReaderContext-
Nested classes/interfaces inherited from interface org.apache.pinot.segment.spi.index.reader.ForwardIndexReader
ForwardIndexReader.ByteRange
-
-
Constructor Summary
Constructors Constructor Description VarByteChunkForwardIndexReaderV4(PinotDataBuffer dataBuffer, FieldSpec.DataType storedType, boolean isSingleValue)
-
Method Summary
-
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
getDictId, getDictIdCompressionType, getDictIdMV, getDictIdMV, getDouble, getFloat, getInt, getLengthOfLongestEntry, getLong, getNumValuesMV, isDocLengthInBits, readDictIds, readValuesMV, readValuesMV, readValuesMV, readValuesMV, readValuesMV, readValuesMV, readValuesSV, readValuesSV, readValuesSV, readValuesSV, readValuesSV
-
-
-
-
Constructor Detail
-
VarByteChunkForwardIndexReaderV4
public VarByteChunkForwardIndexReaderV4(PinotDataBuffer dataBuffer, FieldSpec.DataType storedType, boolean isSingleValue)
-
-
Method Detail
-
isDictionaryEncoded
public boolean isDictionaryEncoded()
- Specified by:
isDictionaryEncodedin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
isSingleValue
public boolean isSingleValue()
- Specified by:
isSingleValuein interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getStoredType
public FieldSpec.DataType getStoredType()
- Specified by:
getStoredTypein interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getCompressionType
public ChunkCompressionType getCompressionType()
- Specified by:
getCompressionTypein interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
createContext
public VarByteChunkForwardIndexReaderV4.ReaderContext createContext()
- Specified by:
createContextin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getBigDecimal
public BigDecimal getBigDecimal(int docId, VarByteChunkForwardIndexReaderV4.ReaderContext context)
- Specified by:
getBigDecimalin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getString
public String getString(int docId, VarByteChunkForwardIndexReaderV4.ReaderContext context)
- Specified by:
getStringin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getBytes
public byte[] getBytes(int docId, VarByteChunkForwardIndexReaderV4.ReaderContext context)- Specified by:
getBytesin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getIntMV
public int getIntMV(int docId, int[] valueBuffer, VarByteChunkForwardIndexReaderV4.ReaderContext context)- Specified by:
getIntMVin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getIntMV
public int[] getIntMV(int docId, VarByteChunkForwardIndexReaderV4.ReaderContext context)- Specified by:
getIntMVin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getLongMV
public int getLongMV(int docId, long[] valueBuffer, VarByteChunkForwardIndexReaderV4.ReaderContext context)- Specified by:
getLongMVin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getLongMV
public long[] getLongMV(int docId, VarByteChunkForwardIndexReaderV4.ReaderContext context)- Specified by:
getLongMVin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getFloatMV
public int getFloatMV(int docId, float[] valueBuffer, VarByteChunkForwardIndexReaderV4.ReaderContext context)- Specified by:
getFloatMVin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getFloatMV
public float[] getFloatMV(int docId, VarByteChunkForwardIndexReaderV4.ReaderContext context)- Specified by:
getFloatMVin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getDoubleMV
public int getDoubleMV(int docId, double[] valueBuffer, VarByteChunkForwardIndexReaderV4.ReaderContext context)- Specified by:
getDoubleMVin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getDoubleMV
public double[] getDoubleMV(int docId, VarByteChunkForwardIndexReaderV4.ReaderContext context)- Specified by:
getDoubleMVin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getStringMV
public int getStringMV(int docId, String[] valueBuffer, VarByteChunkForwardIndexReaderV4.ReaderContext context)- Specified by:
getStringMVin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getStringMV
public String[] getStringMV(int docId, VarByteChunkForwardIndexReaderV4.ReaderContext context)
- Specified by:
getStringMVin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getBytesMV
public int getBytesMV(int docId, byte[][] valueBuffer, VarByteChunkForwardIndexReaderV4.ReaderContext context)- Specified by:
getBytesMVin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getBytesMV
public byte[][] getBytesMV(int docId, VarByteChunkForwardIndexReaderV4.ReaderContext context)- Specified by:
getBytesMVin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
isBufferByteRangeInfoSupported
public boolean isBufferByteRangeInfoSupported()
- Specified by:
isBufferByteRangeInfoSupportedin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
recordDocIdByteRanges
public void recordDocIdByteRanges(int docId, VarByteChunkForwardIndexReaderV4.ReaderContext context, List<ForwardIndexReader.ByteRange> ranges)- Specified by:
recordDocIdByteRangesin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
isFixedOffsetMappingType
public boolean isFixedOffsetMappingType()
- Specified by:
isFixedOffsetMappingTypein interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getRawDataStartOffset
public long getRawDataStartOffset()
- Specified by:
getRawDataStartOffsetin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
getDocLength
public int getDocLength()
- Specified by:
getDocLengthin interfaceForwardIndexReader<VarByteChunkForwardIndexReaderV4.ReaderContext>
-
-