Package org.apache.druid.segment.data
Interface CompressionFactory.LongEncodingReader
- All Known Implementing Classes:
DeltaLongEncodingReader,LongsLongEncodingReader,TableLongEncodingReader
- Enclosing class:
CompressionFactory
public static interface CompressionFactory.LongEncodingReader
-
Method Summary
Modifier and TypeMethodDescriptionDuplicates this reader, creating a new reader that does not share any state.longread(int index) intread(long[] out, int outPosition, int[] indexes, int length, int indexOffset, int limit) voidread(long[] out, int outPosition, int startIndex, int length) voidsetBuffer(ByteBuffer buffer)
-
Method Details
-
setBuffer
-
read
long read(int index) -
read
void read(long[] out, int outPosition, int startIndex, int length) -
read
int read(long[] out, int outPosition, int[] indexes, int length, int indexOffset, int limit) -
duplicate
CompressionFactory.LongEncodingReader duplicate()Duplicates this reader, creating a new reader that does not share any state. Important to achieve thread-safety, because a common pattern is to duplicate a reader multiple times and then callsetBuffer(java.nio.ByteBuffer)on the various duplicates. -
getStrategy
CompressionFactory.LongEncodingStrategy getStrategy()
-