Class VarByteChunkForwardIndexReaderV4.ReaderContext
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.index.readers.forward.VarByteChunkForwardIndexReaderV4.ReaderContext
-
- All Implemented Interfaces:
Closeable,AutoCloseable,ForwardIndexReaderContext
- Enclosing class:
- VarByteChunkForwardIndexReaderV4
public abstract static class VarByteChunkForwardIndexReaderV4.ReaderContext extends Object implements ForwardIndexReaderContext
-
-
Field Summary
Fields Modifier and Type Field Description protected PinotDataBuffer_chunksprotected long_chunkStartOffsetprotected int_docIdOffsetprotected PinotDataBuffer_metadataprotected int_nextDocIdOffsetprotected int_numDocsInCurrentChunkprotected boolean_regularChunk
-
Constructor Summary
Constructors Modifier Constructor Description protectedReaderContext(PinotDataBuffer metadata, PinotDataBuffer chunks, long chunkStartOffset)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected longchunkIndexFor(int docId)byte[]getValue(int docId)protected abstract byte[]processChunkAndReadFirstValue(int docId, long offset, long limit)protected abstract byte[]readSmallUncompressedValue(int docId)
-
-
-
Field Detail
-
_chunks
protected final PinotDataBuffer _chunks
-
_metadata
protected final PinotDataBuffer _metadata
-
_docIdOffset
protected int _docIdOffset
-
_nextDocIdOffset
protected int _nextDocIdOffset
-
_regularChunk
protected boolean _regularChunk
-
_numDocsInCurrentChunk
protected int _numDocsInCurrentChunk
-
_chunkStartOffset
protected long _chunkStartOffset
-
-
Constructor Detail
-
ReaderContext
protected ReaderContext(PinotDataBuffer metadata, PinotDataBuffer chunks, long chunkStartOffset)
-
-
Method Detail
-
getValue
public byte[] getValue(int docId)
-
chunkIndexFor
protected long chunkIndexFor(int docId)
-
processChunkAndReadFirstValue
protected abstract byte[] processChunkAndReadFirstValue(int docId, long offset, long limit) throws IOException- Throws:
IOException
-
readSmallUncompressedValue
protected abstract byte[] readSmallUncompressedValue(int docId)
-
-