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