public final class PackedDataOutput extends Object
DataOutput wrapper to write unaligned, variable-length packed
integers.PackedDataInput| Constructor and Description |
|---|
PackedDataOutput(DataOutput out)
Create a new instance that wraps
out. |
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Flush pending bits to the underlying
DataOutput. |
void |
writeLong(long value,
int bitsPerValue)
Write a value using exactly
bitsPerValue bits. |
public PackedDataOutput(DataOutput out)
out.public void writeLong(long value,
int bitsPerValue)
throws IOException
bitsPerValue bits.IOExceptionpublic void flush()
throws IOException
DataOutput.IOExceptionCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.