Class SimpleOperatorFactory<OUT>
java.lang.Object
org.apache.flink.streaming.api.operators.AbstractStreamOperatorFactory<OUT>
org.apache.flink.streaming.api.operators.SimpleOperatorFactory<OUT>
- Type Parameters:
OUT- The output type of the operator
- All Implemented Interfaces:
Serializable,StreamOperatorFactory<OUT>,ProcessingTimeServiceAware
- Direct Known Subclasses:
SimpleInputFormatOperatorFactory,SimpleOutputFormatOperatorFactory,SimpleUdfStreamOperatorFactory
Simple factory which just wrap existed
StreamOperator.- See Also:
-
Field Summary
Fields inherited from class org.apache.flink.streaming.api.operators.AbstractStreamOperatorFactory
chainingStrategy, processingTimeService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends StreamOperator<OUT>>
TcreateStreamOperator(StreamOperatorParameters<OUT> parameters) Create the operator.Is called to get the OperatorAttributes of the operator.Class<? extends StreamOperator>getStreamOperatorClass(ClassLoader classLoader) Returns the runtime class of the stream operator.booleanIf the stream operator need to be configured with the data type they will operate on.booleanbooleanIf the stream operator need access to the output type information atStreamGraphgeneration.booleanIs this factory forStreamSource.static <OUT> SimpleOperatorFactory<OUT>of(StreamOperator<OUT> operator) Create a SimpleOperatorFactory from existed StreamOperator.voidsetInputType(org.apache.flink.api.common.typeinfo.TypeInformation<?> type, org.apache.flink.api.common.ExecutionConfig executionConfig) Is called by theStreamGraph.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 theStreamGraphis generated.voidsetOutputType(org.apache.flink.api.common.typeinfo.TypeInformation<OUT> type, org.apache.flink.api.common.ExecutionConfig executionConfig) Is called by theStreamGraph.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 theStreamGraphis generated.Methods inherited from class org.apache.flink.streaming.api.operators.AbstractStreamOperatorFactory
getChainingStrategy, getMailboxExecutor, setChainingStrategy, setMailboxExecutor, setProcessingTimeService
-
Constructor Details
-
SimpleOperatorFactory
-
-
Method Details
-
of
Create a SimpleOperatorFactory from existed StreamOperator. -
getOperator
-
createStreamOperator
public <T extends StreamOperator<OUT>> T createStreamOperator(StreamOperatorParameters<OUT> parameters) Description copied from interface:StreamOperatorFactoryCreate the operator. Sets access to the context and the output. -
isStreamSource
public boolean isStreamSource()Description copied from interface:StreamOperatorFactoryIs this factory forStreamSource. -
isLegacySource
public boolean isLegacySource() -
isOutputTypeConfigurable
public boolean isOutputTypeConfigurable()Description copied from interface:StreamOperatorFactoryIf the stream operator need access to the output type information atStreamGraphgeneration. 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. -
setOutputType
public void setOutputType(org.apache.flink.api.common.typeinfo.TypeInformation<OUT> type, org.apache.flink.api.common.ExecutionConfig executionConfig) Description copied from interface:StreamOperatorFactoryIs called by theStreamGraph.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 theStreamGraphis generated. The method is called with the outputTypeInformationwhich is also used for theStreamTaskoutput serializer.- Parameters:
type- Output type information of theStreamTaskexecutionConfig- Execution configuration
-
isInputTypeConfigurable
public boolean isInputTypeConfigurable()Description copied from interface:StreamOperatorFactoryIf the stream operator need to be configured with the data type they will operate on. -
setInputType
public void setInputType(org.apache.flink.api.common.typeinfo.TypeInformation<?> type, org.apache.flink.api.common.ExecutionConfig executionConfig) Description copied from interface:StreamOperatorFactoryIs called by theStreamGraph.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 theStreamGraphis generated.- Parameters:
type- The data type of the input.executionConfig- The execution config for this parallel execution.
-
getStreamOperatorClass
Description copied from interface:StreamOperatorFactoryReturns the runtime class of the stream operator. -
getOperatorAttributes
Description copied from interface:StreamOperatorFactoryIs called to get the OperatorAttributes of the operator. OperatorAttributes can inform the frame to optimize the job performance.- Returns:
- OperatorAttributes of the operator.
-