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 Summary
ConstructorDescriptionRowDataTaskWriterFactory
(Table table, org.apache.flink.table.types.logical.RowType flinkSchema, long targetFileSizeBytes, FileFormat format, Map<String, String> writeProperties, List<Integer> equalityFieldIds, boolean upsert) RowDataTaskWriterFactory
(SerializableSupplier<Table> tableSupplier, org.apache.flink.table.types.logical.RowType flinkSchema, long targetFileSizeBytes, FileFormat format, Map<String, String> writeProperties, List<Integer> equalityFieldIds, boolean upsert) -
Method Summary
Modifier and TypeMethodDescriptionTaskWriter<org.apache.flink.table.data.RowData>
create()
Initialize aTaskWriter
with given task id and attempt id.void
initialize
(int taskId, int attemptId) Initialize the factory with a given taskId and attemptId.
-
Constructor Details
-
RowDataTaskWriterFactory
-
RowDataTaskWriterFactory
public RowDataTaskWriterFactory(SerializableSupplier<Table> tableSupplier, org.apache.flink.table.types.logical.RowType flinkSchema, long targetFileSizeBytes, FileFormat format, Map<String, String> writeProperties, List<Integer> equalityFieldIds, boolean upsert)
-
-
Method Details
-
initialize
public void initialize(int taskId, int attemptId) Description copied from interface:TaskWriterFactory
Initialize the factory with a given taskId and attemptId.- Specified by:
initialize
in interfaceTaskWriterFactory<org.apache.flink.table.data.RowData>
- Parameters:
taskId
- the identifier of task.attemptId
- the attempt id of this task.
-
create
Description copied from interface:TaskWriterFactory
Initialize aTaskWriter
with given task id and attempt id.- Specified by:
create
in interfaceTaskWriterFactory<org.apache.flink.table.data.RowData>
- Returns:
- a newly created task writer.
-