public class SourceOperatorFactory<OUT> extends AbstractStreamOperatorFactory<OUT> implements CoordinatedOperatorFactory<OUT>, ProcessingTimeServiceAware
SourceOperator
.chainingStrategy, processingTimeService
Constructor and Description |
---|
SourceOperatorFactory(Source<OUT,?,?> source,
WatermarkStrategy<OUT> watermarkStrategy) |
SourceOperatorFactory(Source<OUT,?,?> source,
WatermarkStrategy<OUT> watermarkStrategy,
boolean emitProgressiveWatermarks) |
SourceOperatorFactory(Source<OUT,?,?> source,
WatermarkStrategy<OUT> watermarkStrategy,
boolean emitProgressiveWatermarks,
int numCoordinatorWorkerThread) |
Modifier and Type | Method and Description |
---|---|
<T extends StreamOperator<OUT>> |
createStreamOperator(StreamOperatorParameters<OUT> parameters)
The implementation should return an instance of
OperatorEventHandler . |
Boundedness |
getBoundedness() |
OperatorCoordinator.Provider |
getCoordinatorProvider(String operatorName,
OperatorID operatorID)
Get the operator coordinator provider for this operator.
|
Class<? extends StreamOperator> |
getStreamOperatorClass(ClassLoader classLoader)
Returns the runtime class of the stream operator.
|
boolean |
isStreamSource()
Is this factory for
StreamSource . |
void |
setCoordinatorListeningID(String coordinatorListeningID) |
getChainingStrategy, getMailboxExecutor, setChainingStrategy, setMailboxExecutor, setProcessingTimeService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChainingStrategy, isInputTypeConfigurable, isLegacySource, isOutputTypeConfigurable, setChainingStrategy, setInputType, setOutputType
setProcessingTimeService
public SourceOperatorFactory(Source<OUT,?,?> source, WatermarkStrategy<OUT> watermarkStrategy)
public SourceOperatorFactory(Source<OUT,?,?> source, WatermarkStrategy<OUT> watermarkStrategy, boolean emitProgressiveWatermarks)
public SourceOperatorFactory(Source<OUT,?,?> source, WatermarkStrategy<OUT> watermarkStrategy, boolean emitProgressiveWatermarks, int numCoordinatorWorkerThread)
public Boundedness getBoundedness()
public void setCoordinatorListeningID(@Nullable String coordinatorListeningID)
public <T extends StreamOperator<OUT>> T createStreamOperator(StreamOperatorParameters<OUT> parameters)
CoordinatedOperatorFactory
OperatorEventHandler
.createStreamOperator
in interface CoordinatedOperatorFactory<OUT>
createStreamOperator
in interface StreamOperatorFactory<OUT>
public OperatorCoordinator.Provider getCoordinatorProvider(String operatorName, OperatorID operatorID)
CoordinatedOperatorFactory
getCoordinatorProvider
in interface CoordinatedOperatorFactory<OUT>
operatorName
- the name of the operator.operatorID
- the id of the operator.OperatorCoordinator
for this operator.public Class<? extends StreamOperator> getStreamOperatorClass(ClassLoader classLoader)
StreamOperatorFactory
getStreamOperatorClass
in interface StreamOperatorFactory<OUT>
public boolean isStreamSource()
StreamOperatorFactory
StreamSource
.isStreamSource
in interface StreamOperatorFactory<OUT>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.