Package org.apache.iceberg.flink.sink
Class FlinkAppenderFactory
java.lang.Object
org.apache.iceberg.flink.sink.FlinkAppenderFactory
- All Implemented Interfaces:
- Serializable,- FileAppenderFactory<org.apache.flink.table.data.RowData>
public class FlinkAppenderFactory
extends Object
implements FileAppenderFactory<org.apache.flink.table.data.RowData>, Serializable
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionFlinkAppenderFactory(Table table, Schema schema, org.apache.flink.table.types.logical.RowType flinkSchema, Map<String, String> props, PartitionSpec spec, int[] equalityFieldIds, Schema eqDeleteRowSchema, Schema posDeleteRowSchema) 
- 
Method SummaryModifier and TypeMethodDescriptionFileAppender<org.apache.flink.table.data.RowData> newAppender(OutputFile outputFile, FileFormat format) Create a newFileAppender.DataWriter<org.apache.flink.table.data.RowData> newDataWriter(EncryptedOutputFile file, FileFormat format, StructLike partition) Create a newDataWriter.EqualityDeleteWriter<org.apache.flink.table.data.RowData> newEqDeleteWriter(EncryptedOutputFile outputFile, FileFormat format, StructLike partition) Create a newEqualityDeleteWriter.PositionDeleteWriter<org.apache.flink.table.data.RowData> newPosDeleteWriter(EncryptedOutputFile outputFile, FileFormat format, StructLike partition) Create a newPositionDeleteWriter.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.io.FileAppenderFactorynewAppender
- 
Constructor Details- 
FlinkAppenderFactory
 
- 
- 
Method Details- 
newAppenderpublic FileAppender<org.apache.flink.table.data.RowData> newAppender(OutputFile outputFile, FileFormat format) Description copied from interface:FileAppenderFactoryCreate a newFileAppender.- Specified by:
- newAppenderin interface- FileAppenderFactory<org.apache.flink.table.data.RowData>
- Parameters:
- outputFile- an OutputFile used to create an output stream.
- format- File format.
- Returns:
- a newly created FileAppender
 
- 
newDataWriterpublic DataWriter<org.apache.flink.table.data.RowData> newDataWriter(EncryptedOutputFile file, FileFormat format, StructLike partition) Description copied from interface:FileAppenderFactoryCreate a newDataWriter.- Specified by:
- newDataWriterin interface- FileAppenderFactory<org.apache.flink.table.data.RowData>
- Parameters:
- file- an OutputFile used to create an output stream.
- format- a file format
- partition- a tuple of partition values
- Returns:
- a newly created DataWriterfor rows
 
- 
newEqDeleteWriterpublic EqualityDeleteWriter<org.apache.flink.table.data.RowData> newEqDeleteWriter(EncryptedOutputFile outputFile, FileFormat format, StructLike partition) Description copied from interface:FileAppenderFactoryCreate a newEqualityDeleteWriter.- Specified by:
- newEqDeleteWriterin interface- FileAppenderFactory<org.apache.flink.table.data.RowData>
- Parameters:
- outputFile- an OutputFile used to create an output stream.
- format- a file format
- partition- a tuple of partition values
- Returns:
- a newly created EqualityDeleteWriterfor equality deletes
 
- 
newPosDeleteWriterpublic PositionDeleteWriter<org.apache.flink.table.data.RowData> newPosDeleteWriter(EncryptedOutputFile outputFile, FileFormat format, StructLike partition) Description copied from interface:FileAppenderFactoryCreate a newPositionDeleteWriter.- Specified by:
- newPosDeleteWriterin interface- FileAppenderFactory<org.apache.flink.table.data.RowData>
- Parameters:
- outputFile- an OutputFile used to create an output stream.
- format- a file format
- partition- a tuple of partition values
- Returns:
- a newly created PositionDeleteWriterfor position deletes
 
 
-