Package org.apache.lucene.util.packed
Class PackedLongValues.Builder
java.lang.Object
org.apache.lucene.util.packed.PackedLongValues.Builder
- All Implemented Interfaces:
- Accountable
- Enclosing class:
- PackedLongValues
A Builder for a 
PackedLongValues instance.- 
Field SummaryFields inherited from interface org.apache.lucene.util.AccountableNULL_ACCOUNTABLE
- 
Method SummaryModifier and TypeMethodDescriptionadd(long l) Add a new element to this builder.build()Build aPackedLongValuesinstance that contains values that have been added to this builder.final longReturn the memory usage of this object in bytes.final longsize()Return the number of elements that have been added to this builder.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.AccountablegetChildResources
- 
Method Details- 
buildBuild aPackedLongValuesinstance that contains values that have been added to this builder. This operation is destructive.
- 
ramBytesUsedpublic final long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.- Specified by:
- ramBytesUsedin interface- Accountable
 
- 
sizepublic final long size()Return the number of elements that have been added to this builder.
- 
addAdd a new element to this builder.
 
-