public class DeltaBinaryPackingValuesWriterForInteger extends DeltaBinaryPackingValuesWriter
baos, bitWidths, config, DEFAULT_NUM_BLOCK_VALUES, DEFAULT_NUM_MINIBLOCKS, deltaValuesToFlush, miniBlockByteBuffer, totalValueCount| Constructor and Description |
|---|
DeltaBinaryPackingValuesWriterForInteger(int slabSize,
int pageSize,
ByteBufferAllocator allocator) |
DeltaBinaryPackingValuesWriterForInteger(int blockSizeInValues,
int miniBlockNum,
int slabSize,
int pageSize,
ByteBufferAllocator allocator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called to close the values writer.
|
BytesInput |
getBytes()
getBytes will trigger flushing block buffer, DO NOT write after getBytes() is called without calling reset()
|
void |
reset()
called after getBytes() to reset the current buffer and start writing the next page
|
void |
writeInteger(int v) |
getAllocatedSize, getBufferedSize, getEncoding, getMiniBlockCountToFlush, memUsageString, writeBitWidthForMiniBlockresetDictionary, toDictPageAndClose, writeBoolean, writeByte, writeBytes, writeDouble, writeFloat, writeLongpublic DeltaBinaryPackingValuesWriterForInteger(int slabSize,
int pageSize,
ByteBufferAllocator allocator)
public DeltaBinaryPackingValuesWriterForInteger(int blockSizeInValues,
int miniBlockNum,
int slabSize,
int pageSize,
ByteBufferAllocator allocator)
public void writeInteger(int v)
writeInteger in class ValuesWriterv - the value to encodepublic BytesInput getBytes()
getBytes in class ValuesWriterpublic void reset()
ValuesWriterreset in class DeltaBinaryPackingValuesWriterpublic void close()
ValuesWriterclose in interface AutoCloseableclose in class DeltaBinaryPackingValuesWriterCopyright © 2024 The Apache Software Foundation. All rights reserved.