Class PackedInts.MutableImpl

All Implemented Interfaces:
Accountable
Direct Known Subclasses:
Packed64, Packed64SingleBlock
Enclosing class:
PackedInts

abstract static class PackedInts.MutableImpl extends PackedInts.Mutable
  • Field Details

    • valueCount

      protected final int valueCount
    • bitsPerValue

      protected final int bitsPerValue
  • Constructor Details

    • MutableImpl

      protected MutableImpl(int valueCount, int bitsPerValue)
  • Method Details

    • 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 String toString()
      Overrides:
      toString in class Object