final class PackedWriter extends PackedInts.Writer
Modifier and Type | Field and Description |
---|---|
(package private) BulkOperation |
encoder |
(package private) boolean |
finished |
(package private) PackedInts.Format |
format |
(package private) int |
iterations |
(package private) byte[] |
nextBlocks |
(package private) long[] |
nextValues |
(package private) int |
off |
(package private) int |
written |
bitsPerValue, out, valueCount
Constructor and Description |
---|
PackedWriter(PackedInts.Format format,
DataOutput out,
int valueCount,
int bitsPerValue,
int mem) |
Modifier and Type | Method and Description |
---|---|
void |
add(long v)
Add a value to the stream.
|
void |
finish()
Perform end-of-stream operations.
|
private void |
flush() |
protected PackedInts.Format |
getFormat()
The format used to serialize values.
|
int |
ord()
Returns the current ord in the stream (number of values that have been
written so far minus one).
|
bitsPerValue, writeHeader
boolean finished
final PackedInts.Format format
final BulkOperation encoder
final byte[] nextBlocks
final long[] nextValues
final int iterations
int off
int written
PackedWriter(PackedInts.Format format, DataOutput out, int valueCount, int bitsPerValue, int mem)
protected PackedInts.Format getFormat()
PackedInts.Writer
getFormat
in class PackedInts.Writer
public void add(long v) throws java.io.IOException
PackedInts.Writer
add
in class PackedInts.Writer
java.io.IOException
public void finish() throws java.io.IOException
PackedInts.Writer
finish
in class PackedInts.Writer
java.io.IOException
private void flush() throws java.io.IOException
java.io.IOException
public int ord()
PackedInts.Writer
ord
in class PackedInts.Writer