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
ModifierConstructorDescriptionprotected
BaseFileWriterFactory
(Table table, FileFormat dataFileFormat, Schema dataSchema, SortOrder dataSortOrder, FileFormat deleteFileFormat, int[] equalityFieldIds, Schema equalityDeleteRowSchema, SortOrder equalityDeleteSortOrder, Schema positionDeleteRowSchema) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
configureDataWrite
(Avro.DataWriteBuilder builder) protected abstract void
configureDataWrite
(ORC.DataWriteBuilder builder) protected abstract void
protected abstract void
protected abstract void
protected abstract void
protected abstract void
protected abstract void
protected abstract void
protected Schema
protected Schema
newDataWriter
(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:FileWriterFactory
Creates a newDataWriter
.- Specified by:
newDataWriter
in 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:FileWriterFactory
Creates a newEqualityDeleteWriter
.- Specified by:
newEqualityDeleteWriter
in 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:FileWriterFactory
Creates a newPositionDeleteWriter
.- Specified by:
newPositionDeleteWriter
in 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
-