Class StreamOperatorFactoryUtil
java.lang.Object
org.apache.flink.streaming.api.operators.StreamOperatorFactoryUtil
A utility to instantiate new operators with a given factory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <OUT,OP extends StreamOperator<OUT>>
org.apache.flink.api.java.tuple.Tuple2<OP,Optional<ProcessingTimeService>> createOperator(StreamOperatorFactory<OUT> operatorFactory, StreamTask<OUT, ?> containingTask, StreamConfig configuration, Output<StreamRecord<OUT>> output, OperatorEventDispatcher operatorEventDispatcher) Creates a new operator using a factory and makes sure that all special factory traits are properly handled.
-
Constructor Details
-
StreamOperatorFactoryUtil
public StreamOperatorFactoryUtil()
-
-
Method Details
-
createOperator
public static <OUT,OP extends StreamOperator<OUT>> org.apache.flink.api.java.tuple.Tuple2<OP,Optional<ProcessingTimeService>> createOperator(StreamOperatorFactory<OUT> operatorFactory, StreamTask<OUT, ?> containingTask, StreamConfig configuration, Output<StreamRecord<OUT>> output, OperatorEventDispatcher operatorEventDispatcher) Creates a new operator using a factory and makes sure that all special factory traits are properly handled.- Parameters:
operatorFactory- the operator factory.containingTask- the containing task.configuration- the configuration of the operator.output- the output of the operator.operatorEventDispatcher- the operator event dispatcher for communication between operator and coordinators.- Returns:
- a newly created and configured operator, and the
ProcessingTimeServiceinstance it can access.
-