/** * Create a new {@link PagedMutable} instance. * * @param size the number of values to store. * @param pageSize the number of values per page * @param bitsPerValue the number of bits per value * @param acceptableOverheadRatio an acceptable overhead ratio */ public PagedMutable(long size, int pageSize, int bitsPerValue, float acceptableOverheadRatio) { this(size, pageSize, PackedInts.fastestFormatAndBits(pageSize, bitsPerValue, acceptableOverheadRatio)); fillPages(); }
/** * Create a new {@link PagedMutable} instance. * * @param size the number of values to store. * @param pageSize the number of values per page * @param bitsPerValue the number of bits per value * @param acceptableOverheadRatio an acceptable overhead ratio */ public PagedMutable(long size, int pageSize, int bitsPerValue, float acceptableOverheadRatio) { this(size, pageSize, PackedInts.fastestFormatAndBits(pageSize, bitsPerValue, acceptableOverheadRatio)); fillPages(); }
/** * Create a new {@link PagedMutable} instance. * * @param size the number of values to store. * @param pageSize the number of values per page * @param bitsPerValue the number of bits per value * @param acceptableOverheadRatio an acceptable overhead ratio */ public PagedMutable(long size, int pageSize, int bitsPerValue, float acceptableOverheadRatio) { this(size, pageSize, PackedInts.fastestFormatAndBits(pageSize, bitsPerValue, acceptableOverheadRatio)); fillPages(); }
/** * Create a new {@link PagedMutable} instance. * * @param size the number of values to store. * @param pageSize the number of values per page * @param bitsPerValue the number of bits per value * @param acceptableOverheadRatio an acceptable overhead ratio */ public PagedMutable(long size, int pageSize, int bitsPerValue, float acceptableOverheadRatio) { this(size, pageSize, PackedInts.fastestFormatAndBits(pageSize, bitsPerValue, acceptableOverheadRatio)); fillPages(); }