public class DeltaBinaryPackingValuesWriterForLong extends DeltaBinaryPackingValuesWriter
baos, bitWidths, config, DEFAULT_NUM_BLOCK_VALUES, DEFAULT_NUM_MINIBLOCKS, deltaValuesToFlush, miniBlockByteBuffer, totalValueCount| Constructor and Description |
|---|
DeltaBinaryPackingValuesWriterForLong(int slabSize,
int pageSize,
ByteBufferAllocator allocator) |
DeltaBinaryPackingValuesWriterForLong(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 |
writeLong(long v) |
getAllocatedSize, getBufferedSize, getEncoding, getMiniBlockCountToFlush, memUsageString, writeBitWidthForMiniBlockresetDictionary, toDictPageAndClose, writeBoolean, writeByte, writeBytes, writeDouble, writeFloat, writeIntegerpublic DeltaBinaryPackingValuesWriterForLong(int slabSize,
int pageSize,
ByteBufferAllocator allocator)
public DeltaBinaryPackingValuesWriterForLong(int blockSizeInValues,
int miniBlockNum,
int slabSize,
int pageSize,
ByteBufferAllocator allocator)
public void writeLong(long v)
writeLong in class ValuesWriterv - the value to encodepublic BytesInput getBytes()
getBytes in class ValuesWriterpublic void reset()
ValuesWriterreset in class DeltaBinaryPackingValuesWriterpublic void close()
ValuesWriterclose in class DeltaBinaryPackingValuesWriterCopyright © 2019 The Apache Software Foundation. All rights reserved.