Package org.apache.lucene.util.packed
Class PackedInts.Writer
- java.lang.Object
-
- org.apache.lucene.util.packed.PackedInts.Writer
-
- Enclosing class:
- PackedInts
public abstract static class PackedInts.Writer extends java.lang.ObjectA write-once Writer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidadd(long v)Add a value to the stream.intbitsPerValue()The 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 Detail
-
add
public abstract void add(long v) throws java.io.IOExceptionAdd a value to the stream.- Throws:
java.io.IOException
-
bitsPerValue
public final int bitsPerValue()
The number of bits per value.
-
finish
public abstract void finish() throws java.io.IOExceptionPerform end-of-stream operations.- Throws:
java.io.IOException
-
ord
public abstract int ord()
Returns the current ord in the stream (number of values that have been written so far minus one).
-
-