Class LegacyPacked64SingleBlock

    • Field Detail

      • MAX_SUPPORTED_BITS_PER_VALUE

        public static final int MAX_SUPPORTED_BITS_PER_VALUE
        See Also:
        Constant Field Values
      • SUPPORTED_BITS_PER_VALUE

        private static final int[] SUPPORTED_BITS_PER_VALUE
      • blocks

        final long[] blocks
      • valueCount

        protected final int valueCount
      • bitsPerValue

        protected final int bitsPerValue
    • Constructor Detail

      • LegacyPacked64SingleBlock

        LegacyPacked64SingleBlock​(int valueCount,
                                  int bitsPerValue)
    • Method Detail

      • isSupported

        public static boolean isSupported​(int bitsPerValue)
      • requiredCapacity

        private static int requiredCapacity​(int valueCount,
                                            int valuesPerBlock)
      • size

        public final int size()
        Specified by:
        size in class PackedInts.Reader
        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.
      • get

        public int get​(int index,
                       long[] arr,
                       int off,
                       int len)
        Description copied from class: PackedInts.Reader
        Bulk get: read at least one and at most len longs starting from index into arr[off:off+len] and return the actual number of values that have been read.
        Overrides:
        get in class PackedInts.Reader
      • toString

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