Package org.apache.iceberg.flink.sink
Class RowDataTaskWriterFactory
java.lang.Object
org.apache.iceberg.flink.sink.RowDataTaskWriterFactory
- All Implemented Interfaces:
- Serializable,- TaskWriterFactory<org.apache.flink.table.data.RowData>
public class RowDataTaskWriterFactory
extends Object
implements TaskWriterFactory<org.apache.flink.table.data.RowData>
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionRowDataTaskWriterFactory(Table table, org.apache.flink.table.types.logical.RowType flinkSchema, long targetFileSizeBytes, FileFormat format, Map<String, String> writeProperties, Collection<Integer> equalityFieldIds, boolean upsert) RowDataTaskWriterFactory(SerializableSupplier<Table> tableSupplier, org.apache.flink.table.types.logical.RowType flinkSchema, long targetFileSizeBytes, FileFormat format, Map<String, String> writeProperties, Collection<Integer> equalityFieldIds, boolean upsert) RowDataTaskWriterFactory(SerializableSupplier<Table> tableSupplier, org.apache.flink.table.types.logical.RowType flinkSchema, long targetFileSizeBytes, FileFormat format, Map<String, String> writeProperties, Collection<Integer> equalityFieldIds, boolean upsert, Schema schema, PartitionSpec spec) 
- 
Method SummaryModifier and TypeMethodDescriptionTaskWriter<org.apache.flink.table.data.RowData> create()Initialize aTaskWriterwith given task id and attempt id.voidinitialize(int taskId, int attemptId) Initialize the factory with a given taskId and attemptId.
- 
Constructor Details- 
RowDataTaskWriterFactorypublic RowDataTaskWriterFactory(Table table, org.apache.flink.table.types.logical.RowType flinkSchema, long targetFileSizeBytes, FileFormat format, Map<String, String> writeProperties, Collection<Integer> equalityFieldIds, boolean upsert) 
- 
RowDataTaskWriterFactorypublic RowDataTaskWriterFactory(SerializableSupplier<Table> tableSupplier, org.apache.flink.table.types.logical.RowType flinkSchema, long targetFileSizeBytes, FileFormat format, Map<String, String> writeProperties, Collection<Integer> equalityFieldIds, boolean upsert) 
- 
RowDataTaskWriterFactorypublic RowDataTaskWriterFactory(SerializableSupplier<Table> tableSupplier, org.apache.flink.table.types.logical.RowType flinkSchema, long targetFileSizeBytes, FileFormat format, Map<String, String> writeProperties, Collection<Integer> equalityFieldIds, boolean upsert, Schema schema, PartitionSpec spec) 
 
- 
- 
Method Details- 
initializepublic void initialize(int taskId, int attemptId) Description copied from interface:TaskWriterFactoryInitialize the factory with a given taskId and attemptId.- Specified by:
- initializein interface- TaskWriterFactory<org.apache.flink.table.data.RowData>
- Parameters:
- taskId- the identifier of task.
- attemptId- the attempt id of this task.
 
- 
createDescription copied from interface:TaskWriterFactoryInitialize aTaskWriterwith given task id and attempt id.- Specified by:
- createin interface- TaskWriterFactory<org.apache.flink.table.data.RowData>
- Returns:
- a newly created task writer.
 
 
-