Package org.apache.lucene.util.packed
Class PackedDataOutput
- java.lang.Object
-
- org.apache.lucene.util.packed.PackedDataOutput
-
public final class PackedDataOutput extends java.lang.Object
ADataOutput
wrapper to write unaligned, variable-length packed integers.- See Also:
PackedDataInput
-
-
Constructor Summary
Constructors Constructor Description PackedDataOutput(DataOutput out)
Create a new instance that wrapsout
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flush()
Flush pending bits to the underlyingDataOutput
.void
writeLong(long value, int bitsPerValue)
Write a value using exactlybitsPerValue
bits.
-
-
-
Constructor Detail
-
PackedDataOutput
public PackedDataOutput(DataOutput out)
Create a new instance that wrapsout
.
-
-
Method Detail
-
writeLong
public void writeLong(long value, int bitsPerValue) throws java.io.IOException
Write a value using exactlybitsPerValue
bits.- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException
Flush pending bits to the underlyingDataOutput
.- Throws:
java.io.IOException
-
-