Package org.apache.lucene.util.packed
Class MonotonicLongValues.Builder
- java.lang.Object
-
- org.apache.lucene.util.packed.PackedLongValues.Builder
-
- org.apache.lucene.util.packed.DeltaPackedLongValues.Builder
-
- org.apache.lucene.util.packed.MonotonicLongValues.Builder
-
- All Implemented Interfaces:
Accountable
- Enclosing class:
- MonotonicLongValues
static class MonotonicLongValues.Builder extends DeltaPackedLongValues.Builder
-
-
Field Summary
Fields Modifier and Type Field Description (package private) float[]averagesprivate static longBASE_RAM_BYTES_USED-
Fields inherited from class org.apache.lucene.util.packed.DeltaPackedLongValues.Builder
mins
-
Fields inherited from class org.apache.lucene.util.packed.PackedLongValues.Builder
acceptableOverheadRatio, pageMask, pageShift, pending, pendingOff, ramBytesUsed, size, values, valuesOff
-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Constructor Summary
Constructors Constructor Description Builder(int pageSize, float acceptableOverheadRatio)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) longbaseRamBytesUsed()MonotonicLongValuesbuild()Build aPackedLongValuesinstance that contains values that have been added to this builder.(package private) voidgrow(int newBlockCount)(package private) voidpack(long[] values, int numValues, int block, float acceptableOverheadRatio)-
Methods inherited from class org.apache.lucene.util.packed.PackedLongValues.Builder
add, finish, ramBytesUsed, size
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
-
-
-
Method Detail
-
baseRamBytesUsed
long baseRamBytesUsed()
- Overrides:
baseRamBytesUsedin classDeltaPackedLongValues.Builder
-
build
public MonotonicLongValues build()
Description copied from class:PackedLongValues.BuilderBuild aPackedLongValuesinstance that contains values that have been added to this builder. This operation is destructive.- Overrides:
buildin classDeltaPackedLongValues.Builder
-
pack
void pack(long[] values, int numValues, int block, float acceptableOverheadRatio)- Overrides:
packin classDeltaPackedLongValues.Builder
-
grow
void grow(int newBlockCount)
- Overrides:
growin classDeltaPackedLongValues.Builder
-
-