public class SourceCoordinatorProvider<SplitT extends SourceSplit> extends RecreateOnResetOperatorCoordinator.Provider
SourceCoordinator
.Modifier and Type | Class and Description |
---|---|
static class |
SourceCoordinatorProvider.CoordinatorExecutorThreadFactory
A thread factory class that provides some helper methods.
|
Constructor and Description |
---|
SourceCoordinatorProvider(String operatorName,
OperatorID operatorID,
Source<?,SplitT,?> source,
int numWorkerThreads,
WatermarkAlignmentParams alignmentParams,
String coordinatorListeningID)
Construct the
SourceCoordinatorProvider . |
Modifier and Type | Method and Description |
---|---|
OperatorCoordinator |
getCoordinator(OperatorCoordinator.Context context) |
create, create, getOperatorId
public SourceCoordinatorProvider(String operatorName, OperatorID operatorID, Source<?,SplitT,?> source, int numWorkerThreads, 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)
getCoordinator
in class RecreateOnResetOperatorCoordinator.Provider
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.