Class DeltaBinaryDecoder

    • Field Detail

      • count

        protected long count
      • deltaBuf

        protected byte[] deltaBuf
      • readIntTotalCount

        protected int readIntTotalCount
        the first value in one pack.
      • nextReadIndex

        protected int nextReadIndex
      • packWidth

        protected int packWidth
        max bit length of all value in a pack.
      • packNum

        protected int packNum
        data number in this pack.
      • encodingLength

        protected int encodingLength
        how many bytes data takes after encoding.
    • Constructor Detail

      • DeltaBinaryDecoder

        public DeltaBinaryDecoder()
    • Method Detail

      • readHeader

        protected abstract void readHeader​(java.nio.ByteBuffer buffer)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • allocateDataArray

        protected abstract void allocateDataArray()
      • readValue

        protected abstract void readValue​(int i)
      • ceil

        protected int ceil​(int v)
        calculate the bytes length containing v bits.
        Parameters:
        v - - number of bits
        Returns:
        number of bytes
      • hasNext

        public boolean hasNext​(java.nio.ByteBuffer buffer)
                        throws java.io.IOException
        Specified by:
        hasNext in class Decoder
        Throws:
        java.io.IOException