Package org.apache.iceberg.data
Class BaseFileWriterFactory<T>
java.lang.Object
org.apache.iceberg.data.BaseFileWriterFactory<T>
- All Implemented Interfaces:
FileWriterFactory<T>
A base writer factory to be extended by query engine integrations.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseFileWriterFactory(Table table, FileFormat dataFileFormat, Schema dataSchema, SortOrder dataSortOrder, FileFormat deleteFileFormat, int[] equalityFieldIds, Schema equalityDeleteRowSchema, SortOrder equalityDeleteSortOrder, Schema positionDeleteRowSchema) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidconfigureDataWrite(Avro.DataWriteBuilder builder) protected abstract voidconfigureDataWrite(ORC.DataWriteBuilder builder) protected abstract voidprotected abstract voidprotected abstract voidprotected abstract voidprotected abstract voidprotected abstract voidprotected abstract voidprotected Schemaprotected SchemanewDataWriter(EncryptedOutputFile file, PartitionSpec spec, StructLike partition) Creates a newDataWriter.newEqualityDeleteWriter(EncryptedOutputFile file, PartitionSpec spec, StructLike partition) Creates a newEqualityDeleteWriter.newPositionDeleteWriter(EncryptedOutputFile file, PartitionSpec spec, StructLike partition) Creates a newPositionDeleteWriter.protected Schema
-
Constructor Details
-
BaseFileWriterFactory
protected BaseFileWriterFactory(Table table, FileFormat dataFileFormat, Schema dataSchema, SortOrder dataSortOrder, FileFormat deleteFileFormat, int[] equalityFieldIds, Schema equalityDeleteRowSchema, SortOrder equalityDeleteSortOrder, Schema positionDeleteRowSchema)
-
-
Method Details
-
configureDataWrite
-
configureEqualityDelete
-
configurePositionDelete
-
configureDataWrite
-
configureEqualityDelete
-
configurePositionDelete
-
configureDataWrite
-
configureEqualityDelete
-
configurePositionDelete
-
newDataWriter
public DataWriter<T> newDataWriter(EncryptedOutputFile file, PartitionSpec spec, StructLike partition) Description copied from interface:FileWriterFactoryCreates a newDataWriter.- Specified by:
newDataWriterin interfaceFileWriterFactory<T>- Parameters:
file- the output filespec- the partition spec written data belongs topartition- the partition written data belongs to or null if the spec is unpartitioned- Returns:
- the constructed data writer
-
newEqualityDeleteWriter
public EqualityDeleteWriter<T> newEqualityDeleteWriter(EncryptedOutputFile file, PartitionSpec spec, StructLike partition) Description copied from interface:FileWriterFactoryCreates a newEqualityDeleteWriter.- Specified by:
newEqualityDeleteWriterin interfaceFileWriterFactory<T>- Parameters:
file- the output filespec- the partition spec written deletes belong topartition- the partition written deletes belong to or null if the spec is unpartitioned- Returns:
- the constructed equality delete writer
-
newPositionDeleteWriter
public PositionDeleteWriter<T> newPositionDeleteWriter(EncryptedOutputFile file, PartitionSpec spec, StructLike partition) Description copied from interface:FileWriterFactoryCreates a newPositionDeleteWriter.- Specified by:
newPositionDeleteWriterin interfaceFileWriterFactory<T>- Parameters:
file- the output filespec- the partition spec written deletes belong topartition- the partition written deletes belong to or null if the spec is unpartitioned- Returns:
- the constructed position delete writer
-
dataSchema
-
equalityDeleteRowSchema
-
positionDeleteRowSchema
-