public final class PagedMutable extends AbstractPagedMutable<PagedMutable>
PagedMutable. This class slices data into fixed-size blocks
which have the same number of bits per value. It can be a useful replacement
for PackedInts.Mutable to store more than 2B values.IDENTITY, ZEROESNULL_ACCOUNTABLE| Constructor and Description |
|---|
PagedMutable(long size,
int pageSize,
int bitsPerValue,
float acceptableOverheadRatio)
Create a new
PagedMutable instance. |
| Modifier and Type | Method and Description |
|---|---|
protected long |
baseRamBytesUsed() |
protected PackedInts.Mutable |
newMutable(int valueCount,
int bitsPerValue) |
protected PagedMutable |
newUnfilledCopy(long newSize) |
fillPages, get, grow, grow, ramBytesUsed, resize, set, size, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildResourcespublic PagedMutable(long size,
int pageSize,
int bitsPerValue,
float acceptableOverheadRatio)
PagedMutable instance.size - the number of values to store.pageSize - the number of values per pagebitsPerValue - the number of bits per valueacceptableOverheadRatio - an acceptable overhead ratioprotected PackedInts.Mutable newMutable(int valueCount, int bitsPerValue)
newMutable in class AbstractPagedMutable<PagedMutable>protected PagedMutable newUnfilledCopy(long newSize)
newUnfilledCopy in class AbstractPagedMutable<PagedMutable>protected long baseRamBytesUsed()
baseRamBytesUsed in class AbstractPagedMutable<PagedMutable>Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.