public class ByteBitPackingValuesWriter extends ValuesWriter
| Constructor and Description |
|---|
ByteBitPackingValuesWriter(int bound,
Packer packer) |
| Modifier and Type | Method and Description |
|---|---|
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) |
close, resetDictionary, toDictPageAndClose, writeBoolean, writeByte, writeBytes, writeDouble, writeFloat, writeLongpublic ByteBitPackingValuesWriter(int bound,
Packer packer)
public void writeInteger(int v)
writeInteger in class ValuesWriterv - the value to encodepublic Encoding getEncoding()
ValuesWritergetEncoding in class ValuesWriterpublic BytesInput getBytes()
getBytes in class ValuesWriterpublic void reset()
ValuesWriterreset in class ValuesWriterpublic long getBufferedSize()
ValuesWritergetBufferedSize in class ValuesWriterpublic long getAllocatedSize()
ValuesWritergetAllocatedSize in class ValuesWriterpublic String memUsageString(String prefix)
memUsageString in class ValuesWriterCopyright © 2019 The Apache Software Foundation. All rights reserved.