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
static class DeltaPackedLongValues.Builder extends PackedLongValues.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private static long
BASE_RAM_BYTES_USED
(package private) long[]
mins
-
Fields inherited from class org.apache.lucene.util.packed.PackedLongValues.Builder
acceptableOverheadRatio, pageMask, pageShift, pending, pendingOff, ramBytesUsed, size, values, valuesOff
-
-
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) long
baseRamBytesUsed()
DeltaPackedLongValues
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
-
-
-
-
Method Detail
-
baseRamBytesUsed
long baseRamBytesUsed()
- Overrides:
baseRamBytesUsed
in classPackedLongValues.Builder
-
build
public DeltaPackedLongValues 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 classPackedLongValues.Builder
-
pack
void pack(long[] values, int numValues, int block, float acceptableOverheadRatio)
- Overrides:
pack
in classPackedLongValues.Builder
-
grow
void grow(int newBlockCount)
- Overrides:
grow
in classPackedLongValues.Builder
-
-