public class ByteBasedBitPackingEncoder extends Object
| Constructor and Description |
|---|
ByteBasedBitPackingEncoder(int bitWidth,
Packer packer) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAllocatedSize() |
long |
getBufferSize() |
String |
memUsageString(String prefix) |
BytesInput |
toBytes() |
void |
writeInt(int value)
writes an int using the requested number of bits.
|
public ByteBasedBitPackingEncoder(int bitWidth,
Packer packer)
bitWidth - the number of bits used to encode an intpublic void writeInt(int value)
throws IOException
value - the value to writeIOExceptionpublic BytesInput toBytes() throws IOException
IOExceptionpublic long getBufferSize()
public long getAllocatedSize()
Copyright © 2013. All Rights Reserved.