public class RunLengthBitPackingHybridValuesWriter extends ValuesWriter
| Modifier and Type | Field and Description |
|---|---|
protected RunLengthBitPackingHybridEncoder |
encoder |
| Modifier | Constructor and Description |
|---|---|
|
RunLengthBitPackingHybridValuesWriter(int bitWidth,
int initialCapacity,
int pageSize,
ByteBufferAllocator allocator) |
protected |
RunLengthBitPackingHybridValuesWriter(RunLengthBitPackingHybridEncoder encoder) |
| 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 |
writeBoolean(boolean v) |
void |
writeInteger(int v) |
resetDictionary, toDictPageAndClose, writeByte, writeBytes, writeDouble, writeFloat, writeLongprotected final RunLengthBitPackingHybridEncoder encoder
public RunLengthBitPackingHybridValuesWriter(int bitWidth,
int initialCapacity,
int pageSize,
ByteBufferAllocator allocator)
protected RunLengthBitPackingHybridValuesWriter(RunLengthBitPackingHybridEncoder encoder)
public void writeInteger(int v)
writeInteger in class ValuesWriterv - the value to encodepublic void writeBoolean(boolean v)
writeBoolean in class ValuesWriterv - the value to encodepublic long getBufferedSize()
ValuesWritergetBufferedSize in class ValuesWriterpublic long getAllocatedSize()
ValuesWritergetAllocatedSize in class ValuesWriterpublic BytesInput getBytes()
getBytes in class ValuesWriterpublic Encoding getEncoding()
ValuesWritergetEncoding in class ValuesWriterpublic void reset()
ValuesWriterreset in class ValuesWriterpublic void close()
ValuesWriterclose in interface AutoCloseableclose in class ValuesWriterpublic String memUsageString(String prefix)
memUsageString in class ValuesWriterCopyright © 2024 The Apache Software Foundation. All rights reserved.