public class SourceOperatorFactory<OUT> extends AbstractStreamOperatorFactory<OUT> implements CoordinatedOperatorFactory<OUT>, ProcessingTimeServiceAware
SourceOperator.chainingStrategy, processingTimeService| 构造器和说明 |
|---|
SourceOperatorFactory(org.apache.flink.api.connector.source.Source<OUT,?,?> source,
org.apache.flink.api.common.eventtime.WatermarkStrategy<OUT> watermarkStrategy) |
SourceOperatorFactory(org.apache.flink.api.connector.source.Source<OUT,?,?> source,
org.apache.flink.api.common.eventtime.WatermarkStrategy<OUT> watermarkStrategy,
boolean emitProgressiveWatermarks) |
SourceOperatorFactory(org.apache.flink.api.connector.source.Source<OUT,?,?> source,
org.apache.flink.api.common.eventtime.WatermarkStrategy<OUT> watermarkStrategy,
boolean emitProgressiveWatermarks,
int numCoordinatorWorkerThread) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends StreamOperator<OUT>> |
createStreamOperator(StreamOperatorParameters<OUT> parameters)
The implementation should return an instance of
OperatorEventHandler. |
org.apache.flink.api.connector.source.Boundedness |
getBoundedness() |
org.apache.flink.runtime.operators.coordination.OperatorCoordinator.Provider |
getCoordinatorProvider(String operatorName,
org.apache.flink.runtime.jobgraph.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 |
isOutputTypeConfigurable()
If the stream operator need access to the output type information at
StreamGraph
generation. |
boolean |
isStreamSource()
Is this factory for
StreamSource. |
void |
setCoordinatorListeningID(String coordinatorListeningID) |
void |
setOutputType(org.apache.flink.api.common.typeinfo.TypeInformation<OUT> type,
org.apache.flink.api.common.ExecutionConfig executionConfig)
Is called by the
StreamGraph.addOperator(java.lang.Integer, java.lang.String, java.lang.String, org.apache.flink.streaming.api.operators.StreamOperatorFactory<OUT>, org.apache.flink.api.common.typeinfo.TypeInformation<IN>, org.apache.flink.api.common.typeinfo.TypeInformation<OUT>, java.lang.String) method when the StreamGraph is
generated. |
getChainingStrategy, getMailboxExecutor, setChainingStrategy, setMailboxExecutor, setProcessingTimeServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChainingStrategy, getOperatorAttributes, isInputTypeConfigurable, isLegacySource, setChainingStrategy, setInputTypesetProcessingTimeServicepublic SourceOperatorFactory(org.apache.flink.api.connector.source.Source<OUT,?,?> source, org.apache.flink.api.common.eventtime.WatermarkStrategy<OUT> watermarkStrategy)
public SourceOperatorFactory(org.apache.flink.api.connector.source.Source<OUT,?,?> source, org.apache.flink.api.common.eventtime.WatermarkStrategy<OUT> watermarkStrategy, boolean emitProgressiveWatermarks)
public org.apache.flink.api.connector.source.Boundedness getBoundedness()
public void setCoordinatorListeningID(@Nullable String coordinatorListeningID)
public <T extends StreamOperator<OUT>> T createStreamOperator(StreamOperatorParameters<OUT> parameters)
CoordinatedOperatorFactoryOperatorEventHandler.createStreamOperator 在接口中 CoordinatedOperatorFactory<OUT>createStreamOperator 在接口中 StreamOperatorFactory<OUT>public org.apache.flink.runtime.operators.coordination.OperatorCoordinator.Provider getCoordinatorProvider(String operatorName, org.apache.flink.runtime.jobgraph.OperatorID operatorID)
CoordinatedOperatorFactorygetCoordinatorProvider 在接口中 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)
StreamOperatorFactorygetStreamOperatorClass 在接口中 StreamOperatorFactory<OUT>public boolean isStreamSource()
StreamOperatorFactoryStreamSource.isStreamSource 在接口中 StreamOperatorFactory<OUT>public boolean isOutputTypeConfigurable()
StreamOperatorFactoryStreamGraph
generation. This can be useful for cases where the output type is specified by the returns
method and, thus, after the stream operator has been created.isOutputTypeConfigurable 在接口中 StreamOperatorFactory<OUT>public void setOutputType(org.apache.flink.api.common.typeinfo.TypeInformation<OUT> type, org.apache.flink.api.common.ExecutionConfig executionConfig)
StreamOperatorFactoryStreamGraph.addOperator(java.lang.Integer, java.lang.String, java.lang.String, org.apache.flink.streaming.api.operators.StreamOperatorFactory<OUT>, org.apache.flink.api.common.typeinfo.TypeInformation<IN>, org.apache.flink.api.common.typeinfo.TypeInformation<OUT>, java.lang.String) method when the StreamGraph is
generated. The method is called with the output TypeInformation which is also used
for the StreamTask output serializer.setOutputType 在接口中 StreamOperatorFactory<OUT>type - Output type information of the StreamTaskexecutionConfig - Execution configurationCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.