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
Modifier and TypeMethodDescriptionnewDataWriter(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.
-
Method Details
-
newDataWriter
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
-