WriteOptions
struct WriteOptionsHow to write data files.
Implements Copyable, Defaultable, Movable
- Fields
codec: Stringrow_group_rows: Int: Rows per row group, which is what parquet.mojo's writer splits on.page_size: Int: Target uncompressed bytes of values per data page.compression_level: Int: The codec's level:0is the codec's own default. ZSTD takes 1 to 22 and is the only codec that reads it. A higher level writes a smaller file more slowly and changes nothing for readers.use_dictionary: Bool: Whether column chunks may be dictionary-encoded. On, the writer still falls back to plain for any chunk where a dictionary would not pay.truncate: Int:write.metadata.metrics.default = truncate(N); 0 disables truncation.num_workers: Int: Threads that encode each data file's pages (parquet.mojo'sWriterOptions.num_workers): 1, the default, encodes on the calling thread, 0 on every core. The files are the same either way.
__init__
def __init__(out self) from_properties
def from_properties(properties: Dict[String, String]) -> Self