|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.util.packed.PackedInts.Writer
public abstract static class PackedInts.Writer
A write-once Writer.
Field Summary | |
---|---|
protected int |
bitsPerValue
|
protected DataOutput |
out
|
protected int |
valueCount
|
Constructor Summary | |
---|---|
protected |
PackedInts.Writer(DataOutput out,
int valueCount,
int bitsPerValue)
|
Method Summary | |
---|---|
abstract void |
add(long v)
Add a value to the stream. |
int |
bitsPerValue()
The number of bits per value. |
abstract void |
finish()
Perform end-of-stream operations. |
protected abstract PackedInts.Format |
getFormat()
The format used to serialize values. |
abstract int |
ord()
Returns the current ord in the stream (number of values that have been written so far minus one). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final DataOutput out
protected final int valueCount
protected final int bitsPerValue
Constructor Detail |
---|
protected PackedInts.Writer(DataOutput out, int valueCount, int bitsPerValue)
Method Detail |
---|
protected abstract PackedInts.Format getFormat()
public abstract void add(long v) throws IOException
IOException
public final int bitsPerValue()
public abstract void finish() throws IOException
IOException
public abstract int ord()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |