Package org.apache.iceberg.avro
Class Avro.DataWriteBuilder
- java.lang.Object
-
- org.apache.iceberg.avro.Avro.DataWriteBuilder
-
- Enclosing class:
- Avro
public static class Avro.DataWriteBuilder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
forTable
public Avro.DataWriteBuilder forTable(Table table)
-
schema
public Avro.DataWriteBuilder schema(Schema newSchema)
-
set
public Avro.DataWriteBuilder set(java.lang.String property, java.lang.String value)
-
setAll
public Avro.DataWriteBuilder setAll(java.util.Map<java.lang.String,java.lang.String> properties)
-
meta
public Avro.DataWriteBuilder meta(java.lang.String property, java.lang.String value)
-
overwrite
public Avro.DataWriteBuilder overwrite()
-
overwrite
public Avro.DataWriteBuilder overwrite(boolean enabled)
-
metricsConfig
public Avro.DataWriteBuilder metricsConfig(MetricsConfig newMetricsConfig)
-
createWriterFunc
public Avro.DataWriteBuilder createWriterFunc(java.util.function.Function<org.apache.avro.Schema,org.apache.avro.io.DatumWriter<?>> newCreateWriterFunc)
-
withSpec
public Avro.DataWriteBuilder withSpec(PartitionSpec newSpec)
-
withPartition
public Avro.DataWriteBuilder withPartition(StructLike newPartition)
-
withKeyMetadata
public Avro.DataWriteBuilder withKeyMetadata(EncryptionKeyMetadata metadata)
-
withSortOrder
public Avro.DataWriteBuilder withSortOrder(SortOrder newSortOrder)
-
build
public <T> DataWriter<T> build() throws java.io.IOException
- Throws:
java.io.IOException
-
-