Class FixedBitIntReader
- java.lang.Object
-
- org.apache.pinot.segment.local.io.reader.impl.FixedBitIntReader
-
public abstract class FixedBitIntReader extends Object
Int reader for bit-compressed data.
-
-
Method Summary
Modifier and Type Method Description static FixedBitIntReadergetReader(PinotDataBuffer dataBuffer, int numBitsPerValue)abstract intread(int index)Returns the value at the given index.abstract voidread32(int index, int[] out, int outPos)Reads 32 values starting from the given index.abstract intreadUnchecked(int index)Returns the value at the given index.
-
-
-
Method Detail
-
read
public abstract int read(int index)
Returns the value at the given index.
-
readUnchecked
public abstract int readUnchecked(int index)
Returns the value at the given index. This method does not check the boundary of the data buffer, and assume there are enough bytes left in the data buffer. Use this method when the index is not pointing to the last two values in the data buffer.
-
read32
public abstract void read32(int index, int[] out, int outPos)Reads 32 values starting from the given index. The index must be multiple of 32, and all 32 values must be included in the data buffer, i.e.index + 32 <= numValues.
-
getReader
public static FixedBitIntReader getReader(PinotDataBuffer dataBuffer, int numBitsPerValue)
-
-