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) intFields 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 TypeMethodDescriptionvoidadd(long v) Add a value to the stream.voidfinish()Perform end-of-stream operations.private voidflush()protected PackedInts.FormatThe format used to serialize values.intord()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.WriterThe format used to serialize values.- Specified by:
getFormatin classPackedInts.Writer
-
add
Description copied from class:PackedInts.WriterAdd a value to the stream.- Specified by:
addin classPackedInts.Writer- Throws:
IOException
-
finish
Description copied from class:PackedInts.WriterPerform end-of-stream operations.- Specified by:
finishin classPackedInts.Writer- Throws:
IOException
-
flush
- Throws:
IOException
-
ord
public int ord()Description copied from class:PackedInts.WriterReturns the current ord in the stream (number of values that have been written so far minus one).- Specified by:
ordin classPackedInts.Writer
-