Class PagedGrowableWriter

All Implemented Interfaces:
Accountable

public final class PagedGrowableWriter extends AbstractPagedMutable<PagedGrowableWriter>
A PagedGrowableWriter. This class slices data into fixed-size blocks which have independent numbers of bits per value and grow on-demand.

You should use this class instead of the PackedLongValues related ones only when you need random write-access. Otherwise this class will likely be slower and less memory-efficient.

  • Field Details

    • acceptableOverheadRatio

      final float acceptableOverheadRatio
  • Constructor Details

    • PagedGrowableWriter

      public PagedGrowableWriter(long size, int pageSize, int startBitsPerValue, float acceptableOverheadRatio)
      Create a new PagedGrowableWriter instance.
      Parameters:
      size - the number of values to store.
      pageSize - the number of values per page
      startBitsPerValue - the initial number of bits per value
      acceptableOverheadRatio - an acceptable overhead ratio
    • PagedGrowableWriter

      PagedGrowableWriter(long size, int pageSize, int startBitsPerValue, float acceptableOverheadRatio, boolean fillPages)
  • Method Details