Package org.apache.iceberg.io
Interface FileWriterFactory<T>
-
- All Known Implementing Classes:
BaseFileWriterFactory
public interface FileWriterFactory<T>
A factory for creating data and delete writers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataWriter<T>
newDataWriter(EncryptedOutputFile file, PartitionSpec spec, StructLike partition)
Creates a newDataWriter
.EqualityDeleteWriter<T>
newEqualityDeleteWriter(EncryptedOutputFile file, PartitionSpec spec, StructLike partition)
Creates a newEqualityDeleteWriter
.PositionDeleteWriter<T>
newPositionDeleteWriter(EncryptedOutputFile file, PartitionSpec spec, StructLike partition)
Creates a newPositionDeleteWriter
.
-
-
-
Method Detail
-
newDataWriter
DataWriter<T> newDataWriter(EncryptedOutputFile file, PartitionSpec spec, StructLike partition)
Creates a newDataWriter
.- 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
EqualityDeleteWriter<T> newEqualityDeleteWriter(EncryptedOutputFile file, PartitionSpec spec, StructLike partition)
Creates a newEqualityDeleteWriter
.- 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
PositionDeleteWriter<T> newPositionDeleteWriter(EncryptedOutputFile file, PartitionSpec spec, StructLike partition)
Creates a newPositionDeleteWriter
.- 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
-
-