Package org.apache.lucene.util.packed
Class PackedInts.Writer
java.lang.Object
org.apache.lucene.util.packed.PackedInts.Writer
- Enclosing class:
PackedInts
A write-once Writer.
-
Method Summary
Modifier and TypeMethodDescriptionabstract voidadd(long v) Add a value to the stream.final intThe number of bits per value.abstract voidfinish()Perform end-of-stream operations.abstract intord()Returns the current ord in the stream (number of values that have been written so far minus one).
-
Method Details
-
add
Add a value to the stream.- Throws:
IOException
-
bitsPerValue
public final int bitsPerValue()The number of bits per value. -
finish
Perform end-of-stream operations.- Throws:
IOException
-
ord
public abstract int ord()Returns the current ord in the stream (number of values that have been written so far minus one).
-