Package org.apache.lucene.util.packed
Class PackedDataOutput
java.lang.Object
org.apache.lucene.util.packed.PackedDataOutput
A
DataOutput
wrapper to write unaligned, variable-length packed integers.- See Also:
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
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.
-
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
-