Package org.apache.lucene.util.packed
Class PagedGrowableWriter
java.lang.Object
org.apache.lucene.util.LongValues
org.apache.lucene.util.packed.AbstractPagedMutable<PagedGrowableWriter>
org.apache.lucene.util.packed.PagedGrowableWriter
- All Implemented Interfaces:
- Accountable
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.
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
- 
Field SummaryFields inherited from class org.apache.lucene.util.LongValuesIDENTITY, ZEROESFields inherited from interface org.apache.lucene.util.AccountableNULL_ACCOUNTABLE
- 
Constructor SummaryConstructorsConstructorDescriptionPagedGrowableWriter(long size, int pageSize, int startBitsPerValue, float acceptableOverheadRatio) Create a newPagedGrowableWriterinstance.
- 
Method SummaryModifier and TypeMethodDescriptionprotected longprotected PackedInts.MutablenewMutable(int valueCount, int bitsPerValue) protected PagedGrowableWriternewUnfilledCopy(long newSize) Methods inherited from class org.apache.lucene.util.packed.AbstractPagedMutablefillPages, get, grow, grow, ramBytesUsed, resize, set, size, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.util.AccountablegetChildResources
- 
Constructor Details- 
PagedGrowableWriterpublic PagedGrowableWriter(long size, int pageSize, int startBitsPerValue, float acceptableOverheadRatio) Create a newPagedGrowableWriterinstance.- 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
 
 
- 
- 
Method Details- 
newMutable- Specified by:
- newMutablein class- AbstractPagedMutable<PagedGrowableWriter>
 
- 
newUnfilledCopy- Specified by:
- newUnfilledCopyin class- AbstractPagedMutable<PagedGrowableWriter>
 
- 
baseRamBytesUsedprotected long baseRamBytesUsed()- Overrides:
- baseRamBytesUsedin class- AbstractPagedMutable<PagedGrowableWriter>
 
 
-