public class SourceCoordinatorProvider<SplitT extends org.apache.flink.api.connector.source.SourceSplit> extends RecreateOnResetOperatorCoordinator.Provider
SourceCoordinator.| 限定符和类型 | 类和说明 |
|---|---|
static class |
SourceCoordinatorProvider.CoordinatorExecutorThreadFactory
A thread factory class that provides some helper methods.
|
| 构造器和说明 |
|---|
SourceCoordinatorProvider(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 the
SourceCoordinatorProvider. |
| 限定符和类型 | 方法和说明 |
|---|---|
OperatorCoordinator |
getCoordinator(OperatorCoordinator.Context context) |
create, create, getOperatorIdpublic 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)
SourceCoordinatorProvider.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. See SplitEnumeratorContext.callAsync().public OperatorCoordinator getCoordinator(OperatorCoordinator.Context context)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.