Module org.apache.lucene.core
Package org.apache.lucene.util.packed
Class DeltaPackedLongValues.Builder
java.lang.Object
org.apache.lucene.util.packed.PackedLongValues.Builder
org.apache.lucene.util.packed.DeltaPackedLongValues.Builder
- All Implemented Interfaces:
Accountable
- Direct Known Subclasses:
MonotonicLongValues.Builder
- Enclosing class:
DeltaPackedLongValues
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long(package private) long[]Fields inherited from class org.apache.lucene.util.packed.PackedLongValues.Builder
acceptableOverheadRatio, pageMask, pageShift, pending, pendingOff, ramBytesUsed, size, values, valuesOffFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) longbuild()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, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
BASE_RAM_BYTES_USED
private static final long BASE_RAM_BYTES_USED -
mins
long[] mins
-
-
Constructor Details
-
Builder
Builder(int pageSize, float acceptableOverheadRatio)
-
-
Method Details
-
baseRamBytesUsed
long baseRamBytesUsed()- Overrides:
baseRamBytesUsedin classPackedLongValues.Builder
-
build
Description copied from class:PackedLongValues.BuilderBuild aPackedLongValuesinstance that contains values that have been added to this builder. This operation is destructive.- Overrides:
buildin classPackedLongValues.Builder
-
pack
void pack(long[] values, int numValues, int block, float acceptableOverheadRatio) - Overrides:
packin classPackedLongValues.Builder
-
grow
void grow(int newBlockCount) - Overrides:
growin classPackedLongValues.Builder
-