Package org.apache.iceberg.avro
Class Avro.WriteBuilder
java.lang.Object
org.apache.iceberg.avro.Avro.WriteBuilder
- All Implemented Interfaces:
- InternalData.WriteBuilder
- Enclosing class:
- Avro
- 
Method SummaryModifier and TypeMethodDescription<D> FileAppender<D> build()Build the configuredFileAppender.createWriterFunc(Function<org.apache.avro.Schema, org.apache.avro.io.DatumWriter<?>> writerFunction) Set a file metadata property.Set a file metadata properties from a Map.metricsConfig(MetricsConfig newMetricsConfig) Set the file schema's root name.Overwrite the file if it already exists.overwrite(boolean enabled) Set the file schema.Set a writer configuration property.
- 
Method Details- 
forTable
- 
schemaDescription copied from interface:InternalData.WriteBuilderSet the file schema.- Specified by:
- schemain interface- InternalData.WriteBuilder
 
- 
namedDescription copied from interface:InternalData.WriteBuilderSet the file schema's root name.- Specified by:
- namedin interface- InternalData.WriteBuilder
 
- 
createWriterFuncpublic Avro.WriteBuilder createWriterFunc(Function<org.apache.avro.Schema, org.apache.avro.io.DatumWriter<?>> writerFunction) 
- 
setDescription copied from interface:InternalData.WriteBuilderSet a writer configuration property.Write configuration affects writer behavior. To add file metadata properties, use InternalData.WriteBuilder.meta(String, String).- Specified by:
- setin interface- InternalData.WriteBuilder
- Parameters:
- property- a writer config property name
- value- config value
- Returns:
- this for method chaining
 
- 
setAll
- 
metaDescription copied from interface:InternalData.WriteBuilderSet a file metadata property.Metadata properties are written into file metadata. To alter a writer configuration property, use InternalData.WriteBuilder.set(String, String).- Specified by:
- metain interface- InternalData.WriteBuilder
- Parameters:
- property- a file metadata property name
- value- config value
- Returns:
- this for method chaining
 
- 
metaDescription copied from interface:InternalData.WriteBuilderSet a file metadata properties from a Map.Metadata properties are written into file metadata. To alter a writer configuration property, use InternalData.WriteBuilder.set(String, String).- Specified by:
- metain interface- InternalData.WriteBuilder
- Parameters:
- properties- a map of file metadata properties
- Returns:
- this for method chaining
 
- 
metricsConfig
- 
overwriteDescription copied from interface:InternalData.WriteBuilderOverwrite the file if it already exists.- Specified by:
- overwritein interface- InternalData.WriteBuilder
 
- 
overwrite
- 
buildDescription copied from interface:InternalData.WriteBuilderBuild the configuredFileAppender.- Specified by:
- buildin interface- InternalData.WriteBuilder
- Throws:
- IOException
 
 
-