Class AbstractPagedMutable<T extends AbstractPagedMutable<T>>

    • Method Detail

      • fillPages

        protected final void fillPages()
      • newMutable

        protected abstract PackedInts.Mutable newMutable​(int valueCount,
                                                         int bitsPerValue)
      • size

        public final long size()
        The number of values.
      • get

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

        public final void set​(long index,
                              long value)
        Set value at index.
      • baseRamBytesUsed

        protected long baseRamBytesUsed()
      • 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
      • newUnfilledCopy

        protected abstract T newUnfilledCopy​(long newSize)
      • resize

        public final T resize​(long newSize)
        Create a new copy of size newSize based on the content of this buffer. This method is much more efficient than creating a new instance and copying values one by one.