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
@Internal public class SimpleOperatorFactory<OUT> extends AbstractStreamOperatorFactory<OUT>
Simple factory which just wrap existedStreamOperator.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.flink.streaming.api.operators.AbstractStreamOperatorFactory
chainingStrategy, processingTimeService
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimpleOperatorFactory(StreamOperator<OUT> operator)
-
Method Summary
-
Methods inherited from class org.apache.flink.streaming.api.operators.AbstractStreamOperatorFactory
getChainingStrategy, getMailboxExecutor, setChainingStrategy, setMailboxExecutor, setProcessingTimeService
-
-
-
-
Constructor Detail
-
SimpleOperatorFactory
protected SimpleOperatorFactory(StreamOperator<OUT> operator)
-
-
Method Detail
-
of
public static <OUT> SimpleOperatorFactory<OUT> of(StreamOperator<OUT> operator)
Create a SimpleOperatorFactory from existed StreamOperator.
-
getOperator
public StreamOperator<OUT> 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
public Class<? extends StreamOperator> getStreamOperatorClass(ClassLoader classLoader)
Description copied from interface:StreamOperatorFactoryReturns the runtime class of the stream operator.
-
getOperatorAttributes
public OperatorAttributes 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.
-
-