Module org.apache.lucene.core
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
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) float[]
private static final long
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 -
Method Summary
Modifier and TypeMethodDescription(package private) long
build()
Build aPackedLongValues
instance that contains values that have been added to this builder.(package private) void
grow
(int newBlockCount) (package private) void
pack
(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
-
Field Details
-
BASE_RAM_BYTES_USED
private static final long BASE_RAM_BYTES_USED -
averages
float[] averages
-
-
Constructor Details
-
Builder
Builder(int pageSize, float acceptableOverheadRatio)
-
-
Method Details
-
baseRamBytesUsed
long baseRamBytesUsed()- Overrides:
baseRamBytesUsed
in classDeltaPackedLongValues.Builder
-
build
Description copied from class:PackedLongValues.Builder
Build aPackedLongValues
instance that contains values that have been added to this builder. This operation is destructive.- Overrides:
build
in classDeltaPackedLongValues.Builder
-
pack
void pack(long[] values, int numValues, int block, float acceptableOverheadRatio) - Overrides:
pack
in classDeltaPackedLongValues.Builder
-
grow
void grow(int newBlockCount) - Overrides:
grow
in classDeltaPackedLongValues.Builder
-