Package org.apache.datafusion
Class ParquetWriteOptions
java.lang.Object
org.apache.datafusion.ParquetWriteOptions
Configuration knobs for writing parquet, passed to
DataFrame.writeParquet(String, ParquetWriteOptions).
Mirrors a subset of DataFusion's DataFrameWriteOptions and
TableParquetOptions. All setters return this for fluent chaining. Defaults: all fields
null (meaning the DataFusion default is used).
Path semantics: when singleFileOutput(boolean) is true, the path passed to
writeParquet is the literal output filename. When left unset (the default), the path is a
directory that DataFusion populates with one or more part-files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompression(String spec) Compression codec spec, passed verbatim to DataFusion.singleFileOutput(boolean v) Whentrue, write to a single file at the supplied path.
-
Constructor Details
-
ParquetWriteOptions
public ParquetWriteOptions()
-
-
Method Details
-
compression
Compression codec spec, passed verbatim to DataFusion. Examples:"snappy","zstd(3)","gzip(6)","lz4","uncompressed". Invalid values surface asRuntimeExceptionat write time. -
singleFileOutput
Whentrue, write to a single file at the supplied path. When left unset (the default), the path is treated as a directory and DataFusion writes one or more part-files.
-