Package io.deephaven.parquet.base
Class PlainFloatChunkedWriter
java.lang.Object
org.apache.parquet.column.values.ValuesWriter
io.deephaven.parquet.base.AbstractBulkValuesWriter<FloatBuffer>
io.deephaven.parquet.base.PlainFloatChunkedWriter
- All Implemented Interfaces:
BulkWriter<FloatBuffer>,AutoCloseable
A writer for encoding floats in the PLAIN format
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.parquet.base.BulkWriter
BulkWriter.WriteResult -
Field Summary
Fields inherited from class io.deephaven.parquet.base.AbstractBulkValuesWriter
MAX_ARRAY_SIZE -
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 FloatBuffer bulkValues, int rowCount) Write a buffer's worth of values to the underlying page.@NotNull BulkWriter.WriteResultwriteBulkFilterNulls(@NotNull FloatBuffer bulkValues, int rowCount) Write a buffer's worth of packed vector values to the underlying page, skipping null values.@NotNull BulkWriter.WriteResultwriteBulkFilterNulls(@NotNull FloatBuffer bulkValues, @NotNull org.apache.parquet.column.values.rle.RunLengthBitPackingHybridEncoder dlEncoder, int rowCount) Write a buffer's worth of values to the underlying page.final voidwriteFloat(float 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, writeInteger, writeLong
-
Method Details
-
writeFloat
public final void writeFloat(float v) - Overrides:
writeFloatin 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<FloatBuffer>- 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()- Specified by:
closein interfaceAutoCloseable- 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
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 FloatBuffer bulkValues, @NotNull @NotNull org.apache.parquet.column.values.rle.RunLengthBitPackingHybridEncoder dlEncoder, int rowCount) 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 written- Returns:
- a
BulkWriter.WriteResultcontaining the statistics of the result. - Throws:
IOException- if there was an error during write.
-
writeBulkFilterNulls
@NotNull public @NotNull BulkWriter.WriteResult writeBulkFilterNulls(@NotNull @NotNull FloatBuffer bulkValues, int rowCount) 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.
-