java.lang.Object
org.apache.lucene.util.packed.PackedInts.Writer
org.apache.lucene.util.packed.PackedWriter
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final BulkOperation
(package private) boolean
(package private) final PackedInts.Format
(package private) final int
(package private) final byte[]
(package private) final long[]
(package private) int
(package private) int
Fields inherited from class org.apache.lucene.util.packed.PackedInts.Writer
bitsPerValue, out, valueCount
-
Constructor Summary
ConstructorsConstructorDescriptionPackedWriter
(PackedInts.Format format, DataOutput out, int valueCount, int bitsPerValue, int mem) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(long v) Add a value to the stream.void
finish()
Perform end-of-stream operations.private void
flush()
protected PackedInts.Format
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).Methods inherited from class org.apache.lucene.util.packed.PackedInts.Writer
bitsPerValue
-
Field Details
-
finished
boolean finished -
format
-
encoder
-
nextBlocks
final byte[] nextBlocks -
nextValues
final long[] nextValues -
iterations
final int iterations -
off
int off -
written
int written
-
-
Constructor Details
-
PackedWriter
PackedWriter(PackedInts.Format format, DataOutput out, int valueCount, int bitsPerValue, int mem)
-
-
Method Details
-
getFormat
Description copied from class:PackedInts.Writer
The format used to serialize values.- Specified by:
getFormat
in classPackedInts.Writer
-
add
Description copied from class:PackedInts.Writer
Add a value to the stream.- Specified by:
add
in classPackedInts.Writer
- Throws:
IOException
-
finish
Description copied from class:PackedInts.Writer
Perform end-of-stream operations.- Specified by:
finish
in classPackedInts.Writer
- Throws:
IOException
-
flush
- Throws:
IOException
-
ord
public int ord()Description copied from class:PackedInts.Writer
Returns the current ord in the stream (number of values that have been written so far minus one).- Specified by:
ord
in classPackedInts.Writer
-