public class BitPackingValuesWriter extends ValuesWriter
| Constructor and Description |
|---|
BitPackingValuesWriter(int bound,
int initialCapacity,
int pageSize,
ByteBufferAllocator allocator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called to close the values writer.
|
long |
getAllocatedSize()
|
long |
getBufferedSize()
used to decide if we want to work to the next page
|
BytesInput |
getBytes() |
Encoding |
getEncoding()
called after getBytes() and before reset()
|
String |
memUsageString(String prefix) |
void |
reset()
called after getBytes() to reset the current buffer and start writing the next page
|
void |
writeInteger(int v) |
resetDictionary, toDictPageAndClose, writeBoolean, writeByte, writeBytes, writeDouble, writeFloat, writeLongpublic BitPackingValuesWriter(int bound,
int initialCapacity,
int pageSize,
ByteBufferAllocator allocator)
bound - the maximum value stored by this columninitialCapacity - initial capacity for the writerpageSize - the page sizeallocator - a buffer allocatorpublic void writeInteger(int v)
writeInteger in class ValuesWriterv - the value to encodeValuesWriter.writeInteger(int)public long getBufferedSize()
getBufferedSize in class ValuesWriterValuesWriter.getBufferedSize()public BytesInput getBytes()
getBytes in class ValuesWriterValuesWriter.getBytes()public void reset()
reset in class ValuesWriterValuesWriter.reset()public void close()
ValuesWriterclose in class ValuesWriterpublic long getAllocatedSize()
getAllocatedSize in class ValuesWriterValuesWriter.getAllocatedSize()public String memUsageString(String prefix)
memUsageString in class ValuesWriterpublic Encoding getEncoding()
ValuesWritergetEncoding in class ValuesWriterCopyright © 2019 The Apache Software Foundation. All rights reserved.