Package org.apache.iceberg.io
Interface FileAppenderFactory<T>
- Type Parameters:
 T- data type of the rows to append.
- All Known Implementing Classes:
 FlinkAppenderFactory,GenericAppenderFactory
public interface FileAppenderFactory<T>
Factory to create a new 
FileAppender to write records.- 
Method Summary
Modifier and TypeMethodDescriptiondefault FileAppender<T>newAppender(EncryptedOutputFile outputFile, FileFormat fileFormat) Create a newFileAppender.newAppender(OutputFile outputFile, FileFormat fileFormat) Create a newFileAppender.newDataWriter(EncryptedOutputFile outputFile, FileFormat format, StructLike partition) Create a newDataWriter.newEqDeleteWriter(EncryptedOutputFile outputFile, FileFormat format, StructLike partition) Create a newEqualityDeleteWriter.newPosDeleteWriter(EncryptedOutputFile outputFile, FileFormat format, StructLike partition) Create a newPositionDeleteWriter. 
- 
Method Details
- 
newAppender
Create a newFileAppender.- Parameters:
 outputFile- an OutputFile used to create an output stream.fileFormat- File format.- Returns:
 - a newly created 
FileAppender 
 - 
newAppender
Create a newFileAppender.- Parameters:
 outputFile- an EncryptedOutputFile used to create an output stream.fileFormat- File format.- Returns:
 - a newly created 
FileAppender 
 - 
newDataWriter
DataWriter<T> newDataWriter(EncryptedOutputFile outputFile, FileFormat format, StructLike partition) Create a newDataWriter.- Parameters:
 outputFile- an OutputFile used to create an output stream.format- a file formatpartition- a tuple of partition values- Returns:
 - a newly created 
DataWriterfor rows 
 - 
newEqDeleteWriter
EqualityDeleteWriter<T> newEqDeleteWriter(EncryptedOutputFile outputFile, FileFormat format, StructLike partition) Create a newEqualityDeleteWriter.- Parameters:
 outputFile- an OutputFile used to create an output stream.format- a file formatpartition- a tuple of partition values- Returns:
 - a newly created 
EqualityDeleteWriterfor equality deletes 
 - 
newPosDeleteWriter
PositionDeleteWriter<T> newPosDeleteWriter(EncryptedOutputFile outputFile, FileFormat format, StructLike partition) Create a newPositionDeleteWriter.- Parameters:
 outputFile- an OutputFile used to create an output stream.format- a file formatpartition- a tuple of partition values- Returns:
 - a newly created 
PositionDeleteWriterfor position deletes 
 
 -