Class PackedLongValues.Builder

    • Field Detail

      • BASE_RAM_BYTES_USED

        private static final long BASE_RAM_BYTES_USED
      • pageShift

        final int pageShift
      • pageMask

        final int pageMask
      • acceptableOverheadRatio

        final float acceptableOverheadRatio
      • pending

        long[] pending
      • size

        long size
      • ramBytesUsed

        long ramBytesUsed
      • valuesOff

        int valuesOff
      • pendingOff

        int pendingOff
    • Constructor Detail

      • Builder

        Builder​(int pageSize,
                float acceptableOverheadRatio)
    • Method Detail

      • build

        public PackedLongValues build()
        Build a PackedLongValues instance that contains values that have been added to this builder. This operation is destructive.
      • baseRamBytesUsed

        long baseRamBytesUsed()
      • ramBytesUsed

        public final 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
      • size

        public final long size()
        Return the number of elements that have been added to this builder.
      • finish

        final void finish()
      • pack

        private void pack()
      • pack

        void pack​(long[] values,
                  int numValues,
                  int block,
                  float acceptableOverheadRatio)
      • grow

        void grow​(int newBlockCount)