Class DeltaBinaryPackingValuesWriterForInteger
- java.lang.Object
-
- org.apache.parquet.column.values.ValuesWriter
-
- org.apache.parquet.column.values.delta.DeltaBinaryPackingValuesWriter
-
- org.apache.parquet.column.values.delta.DeltaBinaryPackingValuesWriterForInteger
-
public class DeltaBinaryPackingValuesWriterForInteger extends DeltaBinaryPackingValuesWriter
Write integers (INT32) with delta encoding and binary packing.
-
-
Field Summary
-
Fields inherited from class org.apache.parquet.column.values.delta.DeltaBinaryPackingValuesWriter
baos, bitWidths, config, DEFAULT_NUM_BLOCK_VALUES, DEFAULT_NUM_MINIBLOCKS, deltaValuesToFlush, miniBlockByteBuffer, totalValueCount
-
-
Constructor Summary
Constructors Constructor Description DeltaBinaryPackingValuesWriterForInteger(int blockSizeInValues, int miniBlockNum, int slabSize, int pageSize, ByteBufferAllocator allocator)DeltaBinaryPackingValuesWriterForInteger(int slabSize, int pageSize, ByteBufferAllocator allocator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Called to close the values writer.BytesInputgetBytes()getBytes will trigger flushing block buffer, DO NOT write after getBytes() is called without calling reset()voidreset()called after getBytes() to reset the current buffer and start writing the next pagevoidwriteInteger(int v)-
Methods inherited from class org.apache.parquet.column.values.delta.DeltaBinaryPackingValuesWriter
getAllocatedSize, getBufferedSize, getEncoding, getMiniBlockCountToFlush, memUsageString, writeBitWidthForMiniBlock
-
Methods inherited from class org.apache.parquet.column.values.ValuesWriter
resetDictionary, toDictPageAndClose, writeBoolean, writeByte, writeBytes, writeDouble, writeFloat, writeLong
-
-
-
-
Constructor Detail
-
DeltaBinaryPackingValuesWriterForInteger
public DeltaBinaryPackingValuesWriterForInteger(int slabSize, int pageSize, ByteBufferAllocator allocator)
-
DeltaBinaryPackingValuesWriterForInteger
public DeltaBinaryPackingValuesWriterForInteger(int blockSizeInValues, int miniBlockNum, int slabSize, int pageSize, ByteBufferAllocator allocator)
-
-
Method Detail
-
writeInteger
public void writeInteger(int v)
- Overrides:
writeIntegerin classValuesWriter- Parameters:
v- the value to encode
-
getBytes
public BytesInput getBytes()
getBytes will trigger flushing block buffer, DO NOT write after getBytes() is called without calling reset()- Specified by:
getBytesin classValuesWriter- Returns:
- a BytesInput that contains the encoded page data
-
reset
public void reset()
Description copied from class:ValuesWritercalled after getBytes() to reset the current buffer and start writing the next page- Overrides:
resetin classDeltaBinaryPackingValuesWriter
-
close
public void close()
Description copied from class:ValuesWriterCalled to close the values writer. Any output stream is closed and can no longer be used. All resources are released.- Overrides:
closein classDeltaBinaryPackingValuesWriter
-
-