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, writeBitWidthForMiniBlock
resetDictionary, toDictPageAndClose, writeBoolean, writeByte, writeBytes, writeDouble, writeFloat, writeLong
public 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 ValuesWriter
v
- the value to encodepublic BytesInput getBytes()
getBytes
in class ValuesWriter
public void reset()
ValuesWriter
reset
in class DeltaBinaryPackingValuesWriter
public void close()
ValuesWriter
close
in interface AutoCloseable
close
in class DeltaBinaryPackingValuesWriter
Copyright © 2023 The Apache Software Foundation. All rights reserved.