Class PackedInts.MutableImpl

    • Field Detail

      • valueCount

        protected final int valueCount
      • bitsPerValue

        protected final int bitsPerValue
    • Constructor Detail

      • MutableImpl

        protected MutableImpl​(int valueCount,
                              int bitsPerValue)
    • Method Detail

      • getBitsPerValue

        public final int getBitsPerValue()
        Specified by:
        getBitsPerValue in class PackedInts.Mutable
        Returns:
        the number of bits used to store any given value. Note: This does not imply that memory usage is bitsPerValue * #values as implementations are free to use non-space-optimal packing of bits.
      • size

        public final int size()
        Specified by:
        size in class PackedInts.Reader
        Returns:
        the number of values.
      • toString

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