Module writer

Source
Expand description

Contains column writer API.

Modules§

encoder πŸ”’

Macros§

downcast_writer πŸ”’

Structs§

ColumnCloseResult
Metadata returned by GenericColumnWriter::close
ColumnMetrics πŸ”’
GenericColumnWriter
Generic column writer for a primitive column.
PageMetrics πŸ”’

Enums§

ColumnWriter
Column writer for a Parquet type.
LevelDeprecated

Functions§

compare_greater πŸ”’
Evaluate a > b according to underlying logical type.
compare_greater_byte_array_decimals πŸ”’
Signed comparison of bytes arrays
fallback_encoding πŸ”’
Returns encoding for a column when no other encoding is provided in writer properties.
get_column_writer
Gets a specific column writer corresponding to column descriptor descr.
get_typed_column_writer
Gets a typed column writer for the specific type T, by β€œup-casting” col_writer of non-generic type to a generic column writer type ColumnWriterImpl.
get_typed_column_writer_mut
Similar to get_typed_column_writer but returns a reference.
get_typed_column_writer_ref
Similar to get_typed_column_writer but returns a reference.
has_dictionary_support πŸ”’
Returns true if dictionary is supported for column writer, false otherwise.
increment πŸ”’
Try and increment the bytes from right to left.
increment_utf8 πŸ”’
Increment the final character in a UTF-8 string in such a way that the returned result is still a valid UTF-8 string. The returned string may be shorter than the input if the last character(s) cannot be incremented (due to overflow or producing invalid code points). Returns None if the string cannot be incremented.
is_nan πŸ”’
truncate_and_increment_utf8 πŸ”’
Truncate a UTF-8 slice and increment it’s final character. The returned value is the longest such slice that is still a valid UTF-8 string while being less than length bytes and non-empty. Returns None if no such transformation is possible.
truncate_utf8 πŸ”’
Truncate a UTF-8 slice to the longest prefix that is still a valid UTF-8 string, while being less than length bytes and non-empty. Returns None if truncation is not possible within those constraints.
update_max πŸ”’
update_min πŸ”’
update_stat πŸ”’
Perform a conditional update of cur, skipping any NaN values

Type Aliases§

ColumnWriterImpl
Typed column writer for a primitive column.