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 TypeMethodDescriptionvoidflush()Flush pending bits to the underlyingDataOutput.voidwriteLong(long value, int bitsPerValue) Write a value using exactlybitsPerValuebits.
-
Constructor Details
-
PackedDataOutput
Create a new instance that wrapsout.
-
-
Method Details
-
writeLong
Write a value using exactlybitsPerValuebits.- Throws:
IOException
-
flush
Flush pending bits to the underlyingDataOutput.- Throws:
IOException
-