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 writeIOException
public BytesInput toBytes() throws IOException
IOException
public long getBufferSize()
public long getAllocatedSize()
Copyright © 2015. All rights reserved.