public class ClusteringPlanSourceFunction extends org.apache.flink.api.common.functions.AbstractRichFunction implements org.apache.flink.streaming.api.functions.source.SourceFunction<ClusteringPlanEvent>
This function read the clustering plan as ClusteringOperations then assign the clustering task
event ClusteringPlanEvent to downstream operators.
The clustering instant time is specified explicitly with strategies:
HoodieActiveTimeline.createNewInstantTime()
as the instant time;| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
ClusteringPlanSourceFunction(String clusteringInstantTime,
HoodieClusteringPlan clusteringPlan) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
close() |
void |
open(org.apache.flink.configuration.Configuration parameters) |
void |
run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<ClusteringPlanEvent> sourceContext) |
public ClusteringPlanSourceFunction(String clusteringInstantTime, HoodieClusteringPlan clusteringPlan)
public void open(org.apache.flink.configuration.Configuration parameters)
throws Exception
open in interface org.apache.flink.api.common.functions.RichFunctionopen in class org.apache.flink.api.common.functions.AbstractRichFunctionExceptionpublic void run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<ClusteringPlanEvent> sourceContext) throws Exception
run in interface org.apache.flink.streaming.api.functions.source.SourceFunction<ClusteringPlanEvent>Exceptionpublic void close()
throws Exception
close in interface org.apache.flink.api.common.functions.RichFunctionclose in class org.apache.flink.api.common.functions.AbstractRichFunctionExceptionpublic void cancel()
cancel in interface org.apache.flink.streaming.api.functions.source.SourceFunction<ClusteringPlanEvent>Copyright © 2022 The Apache Software Foundation. All rights reserved.