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.IOException
public void flush() throws IOException
DataOutput
.IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.