Class FixedByteChunkMVForwardIndexReader
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.index.readers.forward.BaseChunkForwardIndexReader
-
- org.apache.pinot.segment.local.segment.index.readers.forward.FixedByteChunkMVForwardIndexReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,IndexReader,ForwardIndexReader<ChunkReaderContext>
public final class FixedByteChunkMVForwardIndexReader extends BaseChunkForwardIndexReader
Chunk-based multi-value raw (non-dictionary-encoded) forward index reader for values of fixed length data type (INT, LONG, FLOAT, DOUBLE).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 FixedByteChunkMVForwardIndexReader(PinotDataBuffer dataBuffer, FieldSpec.DataType storedType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChunkReaderContextcreateContext()intgetDocLength()intgetDoubleMV(int docId, double[] valueBuffer, ChunkReaderContext context)double[]getDoubleMV(int docId, ChunkReaderContext context)intgetFloatMV(int docId, float[] valueBuffer, ChunkReaderContext context)float[]getFloatMV(int docId, ChunkReaderContext context)intgetIntMV(int docId, int[] valueBuffer, ChunkReaderContext context)int[]getIntMV(int docId, ChunkReaderContext context)intgetLongMV(int docId, long[] valueBuffer, ChunkReaderContext context)long[]getLongMV(int docId, ChunkReaderContext context)intgetNumValuesMV(int docId, ChunkReaderContext context)longgetRawDataStartOffset()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, getBytes, getBytesMV, getBytesMV, getDictId, getDictIdCompressionType, getDictIdMV, getDictIdMV, getDouble, getFloat, getInt, getLong, getString, getStringMV, getStringMV, isDocLengthInBits, readDictIds, readValuesMV, readValuesMV, readValuesMV, readValuesMV, readValuesMV, readValuesMV, readValuesSV
-
-
-
-
Constructor Detail
-
FixedByteChunkMVForwardIndexReader
public FixedByteChunkMVForwardIndexReader(PinotDataBuffer dataBuffer, FieldSpec.DataType storedType)
-
-
Method Detail
-
createContext
@Nullable public ChunkReaderContext createContext()
-
getIntMV
public int getIntMV(int docId, int[] valueBuffer, ChunkReaderContext context)
-
getIntMV
public int[] getIntMV(int docId, ChunkReaderContext context)
-
getLongMV
public int getLongMV(int docId, long[] valueBuffer, ChunkReaderContext context)
-
getLongMV
public long[] getLongMV(int docId, ChunkReaderContext context)
-
getFloatMV
public int getFloatMV(int docId, float[] valueBuffer, ChunkReaderContext context)
-
getFloatMV
public float[] getFloatMV(int docId, ChunkReaderContext context)
-
getDoubleMV
public int getDoubleMV(int docId, double[] valueBuffer, ChunkReaderContext context)
-
getDoubleMV
public double[] getDoubleMV(int docId, ChunkReaderContext context)
-
getNumValuesMV
public int getNumValuesMV(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()
-
-