Package org.apache.lucene.util.packed
Class PackedDataOutput
- java.lang.Object
-
- org.apache.lucene.util.packed.PackedDataOutput
-
public final class PackedDataOutput extends Object
ADataOutputwrapper to write unaligned, variable-length packed integers.- See Also:
PackedDataInput- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
-
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 voidflush()Flush pending bits to the underlyingDataOutput.voidwriteLong(long value, int bitsPerValue)Write a value using exactlybitsPerValuebits.
-
-
-
Constructor Detail
-
PackedDataOutput
public PackedDataOutput(DataOutput out)
Create a new instance that wrapsout.
-
-
Method Detail
-
writeLong
public void writeLong(long value, int bitsPerValue) throws IOExceptionWrite a value using exactlybitsPerValuebits.- Throws:
IOException
-
flush
public void flush() throws IOExceptionFlush pending bits to the underlyingDataOutput.- Throws:
IOException
-
-