public class ClusteringCommitSink extends CleanFunction<ClusteringCommitEvent>
Each time after receiving a clustering commit event ClusteringCommitEvent,
it loads and checks the clustering plan HoodieClusteringPlan,
if all the clustering operations ClusteringOperation
of the plan are finished, tries to commit the clustering action.
It also inherits the CleanFunction cleaning ability. This is needed because
the SQL API does not allow multiple sinks in one table sink provider.
isCleaning, writeClient| Constructor and Description |
|---|
ClusteringCommitSink(org.apache.flink.configuration.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
invoke(ClusteringCommitEvent event,
org.apache.flink.streaming.api.functions.sink.SinkFunction.Context context) |
void |
open(org.apache.flink.configuration.Configuration parameters) |
close, initializeState, notifyCheckpointComplete, snapshotStategetIterationRuntimeContext, getRuntimeContext, setRuntimeContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ClusteringCommitSink(org.apache.flink.configuration.Configuration conf)
public void open(org.apache.flink.configuration.Configuration parameters)
throws Exception
open in interface org.apache.flink.api.common.functions.RichFunctionopen in class CleanFunction<ClusteringCommitEvent>Exceptionpublic void invoke(ClusteringCommitEvent event, org.apache.flink.streaming.api.functions.sink.SinkFunction.Context context) throws Exception
ExceptionCopyright © 2023 The Apache Software Foundation. All rights reserved.