OUT - The output type of the operator@Internal public class SimpleOperatorFactory<OUT> extends Object implements StreamOperatorFactory<OUT>
StreamOperator.| 限定符 | 构造器和说明 |
|---|---|
protected |
SimpleOperatorFactory(StreamOperator<OUT> operator) |
protected SimpleOperatorFactory(StreamOperator<OUT> operator)
public static <OUT> SimpleOperatorFactory<OUT> of(StreamOperator<OUT> operator)
public StreamOperator<OUT> getOperator()
public <T extends StreamOperator<OUT>> T createStreamOperator(StreamTask<?,?> containingTask, StreamConfig config, Output<StreamRecord<OUT>> output)
StreamOperatorFactorycreateStreamOperator 在接口中 StreamOperatorFactory<OUT>public void setChainingStrategy(ChainingStrategy strategy)
StreamOperatorFactorysetChainingStrategy 在接口中 StreamOperatorFactory<OUT>public ChainingStrategy getChainingStrategy()
StreamOperatorFactorygetChainingStrategy 在接口中 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 configurationpublic boolean isInputTypeConfigurable()
StreamOperatorFactoryisInputTypeConfigurable 在接口中 StreamOperatorFactory<OUT>public 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.setInputType 在接口中 StreamOperatorFactory<OUT>type - The data type of the input.executionConfig - The execution config for this parallel execution.public Class<? extends StreamOperator> getStreamOperatorClass(ClassLoader classLoader)
StreamOperatorFactorygetStreamOperatorClass 在接口中 StreamOperatorFactory<OUT>Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.