Class Packed64SingleBlock

    • 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
    • Constructor Detail

      • Packed64SingleBlock

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

      • isSupported

        public static boolean isSupported​(int bitsPerValue)
      • requiredCapacity

        private static int requiredCapacity​(int valueCount,
                                            int valuesPerBlock)
      • 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
      • set

        public int set​(int index,
                       long[] arr,
                       int off,
                       int len)
        Description copied from class: PackedInts.Mutable
        Bulk set: set at least one and at most len longs starting at off in arr into this mutable, starting at index. Returns the actual number of values that have been set.
        Overrides:
        set in class PackedInts.Mutable
      • fill

        public void fill​(int fromIndex,
                         int toIndex,
                         long val)
        Description copied from class: PackedInts.Mutable
        Fill the mutable from fromIndex (inclusive) to toIndex (exclusive) with val.
        Overrides:
        fill in class PackedInts.Mutable