Package org.apache.iceberg
Interface InternalData.WriteBuilder
- All Known Implementing Classes:
Avro.WriteBuilder
,Parquet.WriteBuilder
- Enclosing class:
- InternalData
public static interface InternalData.WriteBuilder
-
Method Summary
Modifier and TypeMethodDescription<D> FileAppender<D>
build()
Build the configuredFileAppender
.Set a file metadata property.default InternalData.WriteBuilder
Set a file metadata properties from a Map.Set the file schema's root name.Overwrite the file if it already exists.Set the file schema.Set a writer configuration property.
-
Method Details
-
schema
Set the file schema. -
named
Set the file schema's root name. -
set
Set a writer configuration property.Write configuration affects writer behavior. To add file metadata properties, use
meta(String, String)
.- Parameters:
property
- a writer config property namevalue
- config value- Returns:
- this for method chaining
-
meta
Set a file metadata property.Metadata properties are written into file metadata. To alter a writer configuration property, use
set(String, String)
.- Parameters:
property
- a file metadata property namevalue
- config value- Returns:
- this for method chaining
-
meta
Set a file metadata properties from a Map.Metadata properties are written into file metadata. To alter a writer configuration property, use
set(String, String)
.- Parameters:
properties
- a map of file metadata properties- Returns:
- this for method chaining
-
overwrite
InternalData.WriteBuilder overwrite()Overwrite the file if it already exists. -
build
Build the configuredFileAppender
.- Throws:
IOException
-