@Override
    public void open(Configuration parameters) {
        this.taskID = getRuntimeContext().getIndexOfThisSubtask();
        this.writeClient = FlinkWriteClients.createWriteClient(this.config, getRuntimeContext());
        this.ckpMetadata = CkpMetadata.getInstance(config);
        this.initInstant = lastPendingInstant();
        if (metricOption != null) {
            this.sinkMetricData = new SinkMetricData(metricOption, getRuntimeContext().getMetricGroup());
        }
        sendBootstrapEvent();
        initWriterHelper();
    }
Constructs a StreamingSinkFunction.

@param config The config options
inlong-sort/sort-flink/sort-flink-v1.15/sort-connectors/hudi/src/main/java/org/apache/inlong/sort/hudi/sink/bulk/BulkInsertWriteFunction.java