Class MonotonicBlockPackedReader

    • Field Detail

      • blockShift

        final int blockShift
      • blockMask

        final int blockMask
      • valueCount

        final long valueCount
      • minValues

        final long[] minValues
      • averages

        final float[] averages
      • sumBPV

        final long sumBPV
      • totalByteCount

        final long totalByteCount
    • Constructor Detail

      • MonotonicBlockPackedReader

        private MonotonicBlockPackedReader​(IndexInput in,
                                           int packedIntsVersion,
                                           int blockSize,
                                           long valueCount)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • expected

        static long expected​(long origin,
                             float average,
                             int index)
      • of

        public static MonotonicBlockPackedReader of​(IndexInput in,
                                                    int packedIntsVersion,
                                                    int blockSize,
                                                    long valueCount)
                                             throws java.io.IOException
        Sole constructor.
        Throws:
        java.io.IOException
      • get

        public long get​(long index)
        Description copied from class: LongValues
        Get value at index.
        Specified by:
        get in class LongValues
      • size

        public long size()
        Returns the number of values
      • ramBytesUsed

        public long ramBytesUsed()
        Description copied from interface: Accountable
        Return the memory usage of this object in bytes. Negative values are illegal.
        Specified by:
        ramBytesUsed in interface Accountable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object