Class SourceCoordinatorProvider<SplitT extends org.apache.flink.api.connector.source.SourceSplit>
java.lang.Object
org.apache.flink.runtime.operators.coordination.RecreateOnResetOperatorCoordinator.Provider
org.apache.flink.runtime.source.coordinator.SourceCoordinatorProvider<SplitT>
- All Implemented Interfaces:
Serializable,OperatorCoordinator.Provider
public class SourceCoordinatorProvider<SplitT extends org.apache.flink.api.connector.source.SourceSplit>
extends RecreateOnResetOperatorCoordinator.Provider
The provider of
SourceCoordinator.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA thread factory class that provides some helper methods. -
Constructor Summary
ConstructorsConstructorDescriptionSourceCoordinatorProvider(String operatorName, OperatorID operatorID, org.apache.flink.api.connector.source.Source<?, SplitT, ?> source, int numWorkerThreads, org.apache.flink.api.common.eventtime.WatermarkAlignmentParams alignmentParams, String coordinatorListeningID) Construct theSourceCoordinatorProvider. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.apache.flink.runtime.operators.coordination.RecreateOnResetOperatorCoordinator.Provider
create, create, getOperatorId
-
Constructor Details
-
SourceCoordinatorProvider
public SourceCoordinatorProvider(String operatorName, OperatorID operatorID, org.apache.flink.api.connector.source.Source<?, SplitT, ?> source, int numWorkerThreads, org.apache.flink.api.common.eventtime.WatermarkAlignmentParams alignmentParams, @Nullable String coordinatorListeningID) Construct theSourceCoordinatorProvider.- Parameters:
operatorName- the name of the operator.operatorID- the ID of the operator this coordinator corresponds to.source- the Source that will be used for this coordinator.numWorkerThreads- the number of threads the should provide to the SplitEnumerator for doing async calls. SeeSplitEnumeratorContext.callAsync().
-
-
Method Details
-
getCoordinator
- Specified by:
getCoordinatorin classRecreateOnResetOperatorCoordinator.Provider
-