OUT - The output type of the operator@Internal public class SimpleOperatorFactory<OUT> extends AbstractStreamOperatorFactory<OUT>
StreamOperator.chainingStrategy, processingTimeService| 限定符 | 构造器和说明 |
|---|---|
protected |
SimpleOperatorFactory(StreamOperator<OUT> operator) |
getChainingStrategy, getMailboxExecutor, setMailboxExecutor, setProcessingTimeServiceprotected SimpleOperatorFactory(StreamOperator<OUT> operator)
public static <OUT> SimpleOperatorFactory<OUT> of(StreamOperator<OUT> operator)
public StreamOperator<OUT> getOperator()
public <T extends StreamOperator<OUT>> T createStreamOperator(StreamOperatorParameters<OUT> parameters)
StreamOperatorFactorypublic void setChainingStrategy(ChainingStrategy strategy)
StreamOperatorFactorysetChainingStrategy 在接口中 StreamOperatorFactory<OUT>setChainingStrategy 在类中 AbstractStreamOperatorFactory<OUT>public boolean isStreamSource()
StreamOperatorFactoryStreamSource.public boolean isLegacySource()
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.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.type - Output type information of the StreamTaskexecutionConfig - Execution configurationpublic boolean isInputTypeConfigurable()
StreamOperatorFactorypublic void setInputType(org.apache.flink.api.common.typeinfo.TypeInformation<?> 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.type - The data type of the input.executionConfig - The execution config for this parallel execution.public Class<? extends StreamOperator> getStreamOperatorClass(ClassLoader classLoader)
StreamOperatorFactoryCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.