Class PinotDataBitSetV2.Bit2Encoded

    • Method Detail

      • readInt

        public int readInt​(long index)
        Description copied from class: PinotDataBitSetV2
        Decode integers starting at a given index. This is efficient because of simplified bitmath.
        Specified by:
        readInt in class PinotDataBitSetV2
        Parameters:
        index - docId
        Returns:
        unpacked integer
      • readInt

        public void readInt​(long startIndex,
                            int length,
                            int[] out)
        Description copied from class: PinotDataBitSetV2
        Decode 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:
        readInt in class PinotDataBitSetV2
        Parameters:
        startIndex - start docId
        length - length
        out - out array to store the unpacked integers