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 SummaryModifier 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- 
newDataWriterCreates a newDataWriter.- Parameters:
- file- the output file
- spec- the partition spec written data belongs to
- partition- the partition written data belongs to or null if the spec is unpartitioned
- Returns:
- the constructed data writer
 
- 
newEqualityDeleteWriterEqualityDeleteWriter<T> newEqualityDeleteWriter(EncryptedOutputFile file, PartitionSpec spec, StructLike partition) Creates a newEqualityDeleteWriter.- Parameters:
- file- the output file
- spec- the partition spec written deletes belong to
- partition- the partition written deletes belong to or null if the spec is unpartitioned
- Returns:
- the constructed equality delete writer
 
- 
newPositionDeleteWriterPositionDeleteWriter<T> newPositionDeleteWriter(EncryptedOutputFile file, PartitionSpec spec, StructLike partition) Creates a newPositionDeleteWriter.- Parameters:
- file- the output file
- spec- the partition spec written deletes belong to
- partition- the partition written deletes belong to or null if the spec is unpartitioned
- Returns:
- the constructed position delete writer
 
 
-