java.lang.Object
org.apache.lucene.util.LongValues
org.apache.lucene.util.packed.AbstractPagedMutable<PagedMutable>
org.apache.lucene.util.packed.PagedMutable
- All Implemented Interfaces:
Accountable
A
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.-
Field Summary
FieldsFields inherited from class org.apache.lucene.util.packed.AbstractPagedMutable
bitsPerValue, MAX_BLOCK_SIZE, MIN_BLOCK_SIZE, pageMask, pageShift, size, subMutablesFields inherited from class org.apache.lucene.util.LongValues
IDENTITY, ZEROESFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionPagedMutable(long size, int pageSize, int bitsPerValue, float acceptableOverheadRatio) Create a newPagedMutableinstance.PagedMutable(long size, int pageSize, int bitsPerValue, PackedInts.Format format) PagedMutable(long size, int pageSize, PackedInts.FormatAndBits formatAndBits) -
Method Summary
Modifier and TypeMethodDescriptionprotected longprotected PackedInts.MutablenewMutable(int valueCount, int bitsPerValue) protected PagedMutablenewUnfilledCopy(long newSize) Methods inherited from class org.apache.lucene.util.packed.AbstractPagedMutable
fillPages, get, grow, grow, indexInPage, lastPageSize, pageIndex, pageSize, ramBytesUsed, resize, set, size, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
format
-
-
Constructor Details
-
PagedMutable
public PagedMutable(long size, int pageSize, int bitsPerValue, float acceptableOverheadRatio) Create a newPagedMutableinstance.- Parameters:
size- the number of values to store.pageSize- the number of values per pagebitsPerValue- the number of bits per valueacceptableOverheadRatio- an acceptable overhead ratio
-
PagedMutable
PagedMutable(long size, int pageSize, PackedInts.FormatAndBits formatAndBits) -
PagedMutable
PagedMutable(long size, int pageSize, int bitsPerValue, PackedInts.Format format)
-
-
Method Details
-
newMutable
- Specified by:
newMutablein classAbstractPagedMutable<PagedMutable>
-
newUnfilledCopy
- Specified by:
newUnfilledCopyin classAbstractPagedMutable<PagedMutable>
-
baseRamBytesUsed
protected long baseRamBytesUsed()- Overrides:
baseRamBytesUsedin classAbstractPagedMutable<PagedMutable>
-