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
- All Implemented Interfaces:
AutoCloseable
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
ConstructorsConstructorDescriptionDeltaBinaryPackingValuesWriterForInteger(int blockSizeInValues, int miniBlockNum, int slabSize, int pageSize, org.apache.parquet.bytes.ByteBufferAllocator allocator) DeltaBinaryPackingValuesWriterForInteger(int slabSize, int pageSize, org.apache.parquet.bytes.ByteBufferAllocator allocator) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Called to close the values writer.org.apache.parquet.bytes.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, writeBitWidthForMiniBlockMethods inherited from class org.apache.parquet.column.values.ValuesWriter
resetDictionary, toDictPageAndClose, writeBoolean, writeByte, writeBytes, writeDouble, writeFloat, writeLong
-
Constructor Details
-
DeltaBinaryPackingValuesWriterForInteger
public DeltaBinaryPackingValuesWriterForInteger(int slabSize, int pageSize, org.apache.parquet.bytes.ByteBufferAllocator allocator) -
DeltaBinaryPackingValuesWriterForInteger
public DeltaBinaryPackingValuesWriterForInteger(int blockSizeInValues, int miniBlockNum, int slabSize, int pageSize, org.apache.parquet.bytes.ByteBufferAllocator allocator)
-
-
Method Details
-
writeInteger
public void writeInteger(int v) - Overrides:
writeIntegerin classValuesWriter- Parameters:
v- the value to encode
-
getBytes
public org.apache.parquet.bytes.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.- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classDeltaBinaryPackingValuesWriter
-