public abstract static class PackedInts.Writer extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
bitsPerValue |
protected DataOutput |
out |
protected int |
valueCount |
Modifier | Constructor and Description |
---|---|
protected |
Writer(DataOutput out,
int valueCount,
int bitsPerValue) |
Modifier and Type | Method and Description |
---|---|
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).
|
protected final DataOutput out
protected final int valueCount
protected final int bitsPerValue
protected Writer(DataOutput out, int valueCount, int bitsPerValue)
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()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.