Package org.apache.iceberg.parquet
Class Parquet.WriteBuilder
java.lang.Object
org.apache.iceberg.parquet.Parquet.WriteBuilder
- All Implemented Interfaces:
org.apache.iceberg.InternalData.WriteBuilder
- Enclosing class:
- Parquet
public static class Parquet.WriteBuilder
extends Object
implements org.apache.iceberg.InternalData.WriteBuilder
-
Method Summary
Modifier and TypeMethodDescription<D> org.apache.iceberg.io.FileAppender<D>build()createWriterFunc(BiFunction<org.apache.iceberg.Schema, org.apache.parquet.schema.MessageType, ParquetValueWriter<?>> newCreateWriterFunc) createWriterFunc(Function<org.apache.parquet.schema.MessageType, ParquetValueWriter<?>> newCreateWriterFunc) forTable(org.apache.iceberg.Table table) metricsConfig(org.apache.iceberg.MetricsConfig newMetricsConfig) overwrite(boolean enabled) schema(org.apache.iceberg.Schema newSchema) Set aVariantShreddingFunctionthat is called with each variant field's name and field ID to produce the shredding type as atyped_valuefield.withAADPrefix(ByteBuffer aadPrefix) withFileEncryptionKey(ByteBuffer encryptionKey) writerVersion(org.apache.parquet.column.ParquetProperties.WriterVersion version) writeSupport(org.apache.parquet.hadoop.api.WriteSupport<?> newWriteSupport) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.InternalData.WriteBuilder
meta
-
Method Details
-
forTable
-
schema
- Specified by:
schemain interfaceorg.apache.iceberg.InternalData.WriteBuilder
-
variantShreddingFunc
Set aVariantShreddingFunctionthat is called with each variant field's name and field ID to produce the shredding type as atyped_valuefield. This field is added to the result variant struct alongside themetadataandvaluefields.- Parameters:
func-VariantShreddingFunctionthat produces a shreddedtyped_value- Returns:
- this for method chaining
-
named
- Specified by:
namedin interfaceorg.apache.iceberg.InternalData.WriteBuilder
-
writeSupport
public Parquet.WriteBuilder writeSupport(org.apache.parquet.hadoop.api.WriteSupport<?> newWriteSupport) -
set
- Specified by:
setin interfaceorg.apache.iceberg.InternalData.WriteBuilder
-
setAll
-
meta
- Specified by:
metain interfaceorg.apache.iceberg.InternalData.WriteBuilder
-
createWriterFunc
public Parquet.WriteBuilder createWriterFunc(Function<org.apache.parquet.schema.MessageType, ParquetValueWriter<?>> newCreateWriterFunc) -
createWriterFunc
public Parquet.WriteBuilder createWriterFunc(BiFunction<org.apache.iceberg.Schema, org.apache.parquet.schema.MessageType, ParquetValueWriter<?>> newCreateWriterFunc) -
metricsConfig
-
overwrite
- Specified by:
overwritein interfaceorg.apache.iceberg.InternalData.WriteBuilder
-
overwrite
-
writerVersion
public Parquet.WriteBuilder writerVersion(org.apache.parquet.column.ParquetProperties.WriterVersion version) -
withFileEncryptionKey
-
withAADPrefix
-
build
- Specified by:
buildin interfaceorg.apache.iceberg.InternalData.WriteBuilder- Throws:
IOException
-