Class DeltaBinaryPackingValuesWriterForLong
java.lang.Object
org.apache.parquet.column.values.ValuesWriter
org.apache.parquet.column.values.delta.DeltaBinaryPackingValuesWriter
org.apache.parquet.column.values.delta.DeltaBinaryPackingValuesWriterForLong
- All Implemented Interfaces:
AutoCloseable
Write longs (INT64) 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
ConstructorsConstructorDescriptionDeltaBinaryPackingValuesWriterForLong(int blockSizeInValues, int miniBlockNum, int slabSize, int pageSize, org.apache.parquet.bytes.ByteBufferAllocator allocator) DeltaBinaryPackingValuesWriterForLong(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 pagevoidwriteLong(long 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, writeInteger
-
Constructor Details
-
DeltaBinaryPackingValuesWriterForLong
public DeltaBinaryPackingValuesWriterForLong(int slabSize, int pageSize, org.apache.parquet.bytes.ByteBufferAllocator allocator) -
DeltaBinaryPackingValuesWriterForLong
public DeltaBinaryPackingValuesWriterForLong(int blockSizeInValues, int miniBlockNum, int slabSize, int pageSize, org.apache.parquet.bytes.ByteBufferAllocator allocator)
-
-
Method Details
-
writeLong
public void writeLong(long v) - Overrides:
writeLongin 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
-