Skip to main content

Module parallel_writer

Module parallel_writer 

Source
Expand description

Arrow to Parquet writer that encodes the columns of a row group in parallel.

Structsยง

ParallelArrowWriter
Writes Parquet like [parquet::arrow::AsyncArrowWriter], but encodes the columns of each row group on up to parallelism blocking tasks.

Enumsยง

EncodeRuntime
Runtime whose blocking pool encodes the columns of a writer.

Functionsยง

abort_encoding_tasks ๐Ÿ”’
Aborts queued blocking work and joins running work before its budget is released.
assign_fields ๐Ÿ”’
Splits fields into at most parallelism tasks, giving the most expensive field to the least loaded task first. Fields cost nothing before any row group is measured, which spreads them evenly.
encode_fields ๐Ÿ”’
Encodes fields of all batches and closes their column writers.

Type Aliasesยง

EncodedFields ๐Ÿ”’
Output of one encode task: column chunks by leaf index, and the time spent on each field.
FieldWriters ๐Ÿ”’
Column writers of one top-level field: its index and its leaf writers.