java.lang.Object
org.apache.lucene.util.packed.PackedDataOutput
A
DataOutput
wrapper to write unaligned, variable-length packed integers.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) long
(package private) final DataOutput
(package private) int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
Flush pending bits to the underlyingDataOutput
.void
writeLong
(long value, int bitsPerValue) Write a value using exactlybitsPerValue
bits.
-
Field Details
-
out
-
current
long current -
remainingBits
int remainingBits
-
-
Constructor Details
-
PackedDataOutput
Create a new instance that wrapsout
.
-
-
Method Details
-
writeLong
Write a value using exactlybitsPerValue
bits.- Throws:
IOException
-
flush
Flush pending bits to the underlyingDataOutput
.- Throws:
IOException
-