Class VarByteChunkMVForwardIndexReader
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.index.readers.forward.BaseChunkForwardIndexReader
-
- org.apache.pinot.segment.local.segment.index.readers.forward.VarByteChunkMVForwardIndexReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,IndexReader,ForwardIndexReader<ChunkReaderContext>
public final class VarByteChunkMVForwardIndexReader extends BaseChunkForwardIndexReader
Chunk-based multi-value raw (non-dictionary-encoded) forward index reader for values of variable length data type (STRING, BYTES).For data layout, please refer to the documentation for
VarByteChunkForwardIndexWriter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pinot.segment.spi.index.reader.ForwardIndexReader
ForwardIndexReader.ByteRange
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.segment.local.segment.index.readers.forward.BaseChunkForwardIndexReader
_chunkDecompressor, _compressionType, _dataBuffer, _dataHeader, _dataHeaderStart, _headerEntryChunkOffsetSize, _isCompressed, _isSingleValue, _lengthOfLongestEntry, _numChunks, _numDocsPerChunk, _rawData, _rawDataStart, _storedType
-
-
Constructor Summary
Constructors Constructor Description VarByteChunkMVForwardIndexReader(PinotDataBuffer dataBuffer, FieldSpec.DataType valueType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChunkReaderContextcreateContext()byte[]getBytes(int docId, ChunkReaderContext context)intgetBytesMV(int docId, byte[][] valueBuffer, ChunkReaderContext context)byte[][]getBytesMV(int docId, ChunkReaderContext context)intgetDocLength()intgetNumValuesMV(int docId, ChunkReaderContext context)longgetRawDataStartOffset()intgetStringMV(int docId, String[] valueBuffer, ChunkReaderContext context)String[]getStringMV(int docId, ChunkReaderContext context)booleanisBufferByteRangeInfoSupported()booleanisFixedOffsetMappingType()voidrecordDocIdByteRanges(int docId, ChunkReaderContext context, List<ForwardIndexReader.ByteRange> ranges)-
Methods inherited from class org.apache.pinot.segment.local.segment.index.readers.forward.BaseChunkForwardIndexReader
close, decompressChunk, getChunkBuffer, getChunkId, getChunkPosition, getChunkPositionAndRecordRanges, getCompressionType, getLengthOfLongestEntry, getStoredType, getValueEndOffsetAndRecordRanges, isDictionaryEncoded, isSingleValue, readValuesSV, readValuesSV, readValuesSV, readValuesSV, recordChunkRanges, recordDocIdRanges, recordDocIdRangesUncompressed
-
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
getBigDecimal, getDictId, getDictIdCompressionType, getDictIdMV, getDictIdMV, getDouble, getDoubleMV, getDoubleMV, getFloat, getFloatMV, getFloatMV, getInt, getIntMV, getIntMV, getLong, getLongMV, getLongMV, getString, isDocLengthInBits, readDictIds, readValuesMV, readValuesMV, readValuesMV, readValuesMV, readValuesMV, readValuesMV, readValuesSV
-
-
-
-
Constructor Detail
-
VarByteChunkMVForwardIndexReader
public VarByteChunkMVForwardIndexReader(PinotDataBuffer dataBuffer, FieldSpec.DataType valueType)
-
-
Method Detail
-
createContext
@Nullable public ChunkReaderContext createContext()
-
getStringMV
public int getStringMV(int docId, String[] valueBuffer, ChunkReaderContext context)
-
getStringMV
public String[] getStringMV(int docId, ChunkReaderContext context)
-
getBytesMV
public int getBytesMV(int docId, byte[][] valueBuffer, ChunkReaderContext context)
-
getBytesMV
public byte[][] getBytesMV(int docId, ChunkReaderContext context)
-
getNumValuesMV
public int getNumValuesMV(int docId, ChunkReaderContext context)
-
getBytes
public byte[] getBytes(int docId, ChunkReaderContext context)
-
isBufferByteRangeInfoSupported
public boolean isBufferByteRangeInfoSupported()
-
recordDocIdByteRanges
public void recordDocIdByteRanges(int docId, ChunkReaderContext context, List<ForwardIndexReader.ByteRange> ranges)
-
isFixedOffsetMappingType
public boolean isFixedOffsetMappingType()
-
getRawDataStartOffset
public long getRawDataStartOffset()
-
getDocLength
public int getDocLength()
-
-