Class FixedBitIntReader


  • public abstract class FixedBitIntReader
    extends Object
    Int reader for bit-compressed data.
    • 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.