Package org.apache.iceberg.flink.sink
Interface TaskWriterFactory<T>
- Type Parameters:
- T- data type of record.
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- RowDataTaskWriterFactory
Factory to create 
TaskWriter- 
Method SummaryModifier and TypeMethodDescriptioncreate()Initialize aTaskWriterwith given task id and attempt id.voidinitialize(int taskId, int attemptId) Initialize the factory with a given taskId and attemptId.
- 
Method Details- 
initializevoid initialize(int taskId, int attemptId) Initialize the factory with a given taskId and attemptId.- Parameters:
- taskId- the identifier of task.
- attemptId- the attempt id of this task.
 
- 
createTaskWriter<T> create()Initialize aTaskWriterwith given task id and attempt id.- Returns:
- a newly created task writer.
 
 
-