Class PinotDataBitSetV2.Bit1Encoded
- java.lang.Object
-
- org.apache.pinot.segment.local.io.util.PinotDataBitSetV2
-
- org.apache.pinot.segment.local.io.util.PinotDataBitSetV2.Bit1Encoded
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- PinotDataBitSetV2
public static class PinotDataBitSetV2.Bit1Encoded extends PinotDataBitSetV2
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.pinot.segment.local.io.util.PinotDataBitSetV2
PinotDataBitSetV2.Bit16Encoded, PinotDataBitSetV2.Bit1Encoded, PinotDataBitSetV2.Bit2Encoded, PinotDataBitSetV2.Bit4Encoded, PinotDataBitSetV2.Bit8Encoded, PinotDataBitSetV2.RawInt
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.segment.local.io.util.PinotDataBitSetV2
_dataBuffer, _numBitsPerValue, MAX_DOC_PER_CALL
-
-
-
-
Method Detail
-
readInt
public int readInt(long index)
Description copied from class:PinotDataBitSetV2Decode integers starting at a given index. This is efficient because of simplified bitmath.- Specified by:
readIntin classPinotDataBitSetV2- Parameters:
index- docId- Returns:
- unpacked integer
-
readInt
public void readInt(long startIndex, int length, int[] out)Description copied from class:PinotDataBitSetV2Decode integers for a contiguous range of indexes represented by startIndex and length. This uses vectorization as much as possible for all the aligned reads and also takes care of the small byte-sized window of unaligned read.- Specified by:
readIntin classPinotDataBitSetV2- Parameters:
startIndex- start docIdlength- lengthout- out array to store the unpacked integers
-
-