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 intpacker - factory for bit packing implementationspublic void writeInt(int value)
throws IOException
value - the value to writeIOException - if there is an exception while writingpublic BytesInput toBytes() throws IOException
IOException - if there is an exception while creating the BytesInputpublic long getBufferSize()
public long getAllocatedSize()
Copyright © 2018 The Apache Software Foundation. All rights reserved.