Package io.deephaven.parquet.base
Class RleIntChunkedWriter
java.lang.Object
org.apache.parquet.column.values.ValuesWriter
io.deephaven.parquet.base.AbstractBulkValuesWriter<IntBuffer>
io.deephaven.parquet.base.RleIntChunkedWriter
- All Implemented Interfaces:
BulkWriter<IntBuffer>
Plain encoding except for booleans
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.parquet.base.BulkWriter
BulkWriter.WriteResult -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longlongGet a view of this writerByteBuffer.org.apache.parquet.bytes.BytesInputgetBytes()org.apache.parquet.column.EncodingmemUsageString(String prefix) voidreset()Clear all internal state.voidwriteBulk(@NotNull IntBuffer bulkValues, int rowCount, @Nullable org.apache.parquet.column.statistics.Statistics<?> statistics) Write a buffer's worth of values to the underlying page.@NotNull BulkWriter.WriteResultwriteBulkFilterNulls(@NotNull IntBuffer bulkValues, @NotNull org.apache.parquet.column.values.rle.RunLengthBitPackingHybridEncoder dlEncoder, int rowCount, @NotNull org.apache.parquet.column.statistics.Statistics<?> statistics) Write a buffer's worth of values to the underlying page.@NotNull BulkWriter.WriteResultwriteBulkVectorFilterNulls(@NotNull IntBuffer bulkValues, int rowCount, @NotNull org.apache.parquet.column.statistics.Statistics<?> statistics) Write a buffer's worth of packed vector values to the underlying page, skipping null values.final voidwriteInteger(int v) Methods inherited from class io.deephaven.parquet.base.AbstractBulkValuesWriter
writeBulkVectorMethods inherited from class org.apache.parquet.column.values.ValuesWriter
resetDictionary, toDictPageAndClose, writeBoolean, writeByte, writeBytes, writeDouble, writeFloat, writeLong
-
Method Details
-
writeInteger
public final void writeInteger(int v) - Overrides:
writeIntegerin classorg.apache.parquet.column.values.ValuesWriter
-
getBufferedSize
public long getBufferedSize()- Specified by:
getBufferedSizein classorg.apache.parquet.column.values.ValuesWriter
-
getBytes
public org.apache.parquet.bytes.BytesInput getBytes()- Specified by:
getBytesin classorg.apache.parquet.column.values.ValuesWriter
-
reset
public void reset()Description copied from interface:BulkWriterClear all internal state.- Specified by:
resetin interfaceBulkWriter<IntBuffer>- Specified by:
resetin classorg.apache.parquet.column.values.ValuesWriter
-
getByteBufferView
Description copied from interface:BulkWriterGet a view of this writerByteBuffer.- Returns:
- a
ByteBuffercontaining the written data.
-
close
public void close()- Overrides:
closein classorg.apache.parquet.column.values.ValuesWriter
-
getAllocatedSize
public long getAllocatedSize()- Specified by:
getAllocatedSizein classorg.apache.parquet.column.values.ValuesWriter
-
getEncoding
public org.apache.parquet.column.Encoding getEncoding()- Specified by:
getEncodingin classorg.apache.parquet.column.values.ValuesWriter
-
memUsageString
- Specified by:
memUsageStringin classorg.apache.parquet.column.values.ValuesWriter
-
writeBulk
public void writeBulk(@NotNull @NotNull IntBuffer bulkValues, int rowCount, @Nullable @Nullable org.apache.parquet.column.statistics.Statistics<?> statistics) Description copied from interface:BulkWriterWrite a buffer's worth of values to the underlying page.- Parameters:
bulkValues- the buffer of valuesrowCount- the total number of rows to write.
-
writeBulkFilterNulls
@NotNull public @NotNull BulkWriter.WriteResult writeBulkFilterNulls(@NotNull @NotNull IntBuffer bulkValues, @NotNull @NotNull org.apache.parquet.column.values.rle.RunLengthBitPackingHybridEncoder dlEncoder, int rowCount, @NotNull @NotNull org.apache.parquet.column.statistics.Statistics<?> statistics) throws IOException Description copied from interface:BulkWriterWrite a buffer's worth of values to the underlying page. This method will find, without writing,nullvalues and record their offsets in anIntBufferin the result. The appropriate definition level will be set for null values.- Parameters:
bulkValues- the values to writedlEncoder- the encoder for definition levelsrowCount- the number of rows being writtenstatistics- theStatisticsobject to modify.- Returns:
- a
BulkWriter.WriteResultcontaining the statistics of the result. - Throws:
IOException- if there was an error during write.
-
writeBulkVectorFilterNulls
@NotNull public @NotNull BulkWriter.WriteResult writeBulkVectorFilterNulls(@NotNull @NotNull IntBuffer bulkValues, int rowCount, @NotNull @NotNull org.apache.parquet.column.statistics.Statistics<?> statistics) Description copied from interface:BulkWriterWrite a buffer's worth of packed vector values to the underlying page, skipping null values. This method will findnullvalues and record their offsets in anIntBufferin the result.- Parameters:
bulkValues- the packed vector values to writerowCount- the number of rows being written.- Returns:
- a
BulkWriter.WriteResultcontaining the statistics of the result.
-