Class ParquetWriteOptions

java.lang.Object
org.apache.datafusion.ParquetWriteOptions

public final class ParquetWriteOptions extends Object
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 Details

    • ParquetWriteOptions

      public ParquetWriteOptions()
  • Method Details

    • compression

      public ParquetWriteOptions compression(String spec)
      Compression codec spec, passed verbatim to DataFusion. Examples: "snappy", "zstd(3)", "gzip(6)", "lz4", "uncompressed". Invalid values surface as RuntimeException at write time.
    • singleFileOutput

      public ParquetWriteOptions singleFileOutput(boolean v)
      When true, 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.