Package org.apache.iceberg.orc
Class ORC.DataWriteBuilder
- java.lang.Object
-
- org.apache.iceberg.orc.ORC.DataWriteBuilder
-
- Enclosing class:
- ORC
public static class ORC.DataWriteBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> DataWriter<T>
build()
ORC.DataWriteBuilder
createWriterFunc(java.util.function.BiFunction<Schema,org.apache.orc.TypeDescription,OrcRowWriter<?>> writerFunction)
ORC.DataWriteBuilder
forTable(Table table)
ORC.DataWriteBuilder
meta(java.lang.String property, java.lang.String value)
ORC.DataWriteBuilder
metricsConfig(MetricsConfig newMetricsConfig)
ORC.DataWriteBuilder
overwrite()
ORC.DataWriteBuilder
overwrite(boolean enabled)
ORC.DataWriteBuilder
schema(Schema newSchema)
ORC.DataWriteBuilder
set(java.lang.String property, java.lang.String value)
ORC.DataWriteBuilder
setAll(java.util.Map<java.lang.String,java.lang.String> properties)
ORC.DataWriteBuilder
withKeyMetadata(EncryptionKeyMetadata metadata)
ORC.DataWriteBuilder
withPartition(StructLike newPartition)
ORC.DataWriteBuilder
withSortOrder(SortOrder newSortOrder)
ORC.DataWriteBuilder
withSpec(PartitionSpec newSpec)
-
-
-
Method Detail
-
forTable
public ORC.DataWriteBuilder forTable(Table table)
-
schema
public ORC.DataWriteBuilder schema(Schema newSchema)
-
set
public ORC.DataWriteBuilder set(java.lang.String property, java.lang.String value)
-
setAll
public ORC.DataWriteBuilder setAll(java.util.Map<java.lang.String,java.lang.String> properties)
-
meta
public ORC.DataWriteBuilder meta(java.lang.String property, java.lang.String value)
-
overwrite
public ORC.DataWriteBuilder overwrite()
-
overwrite
public ORC.DataWriteBuilder overwrite(boolean enabled)
-
metricsConfig
public ORC.DataWriteBuilder metricsConfig(MetricsConfig newMetricsConfig)
-
createWriterFunc
public ORC.DataWriteBuilder createWriterFunc(java.util.function.BiFunction<Schema,org.apache.orc.TypeDescription,OrcRowWriter<?>> writerFunction)
-
withSpec
public ORC.DataWriteBuilder withSpec(PartitionSpec newSpec)
-
withPartition
public ORC.DataWriteBuilder withPartition(StructLike newPartition)
-
withKeyMetadata
public ORC.DataWriteBuilder withKeyMetadata(EncryptionKeyMetadata metadata)
-
withSortOrder
public ORC.DataWriteBuilder withSortOrder(SortOrder newSortOrder)
-
build
public <T> DataWriter<T> build()
-
-