public class StreamOperatorFactoryUtil extends Object
Constructor and Description |
---|
StreamOperatorFactoryUtil() |
Modifier and Type | Method and Description |
---|---|
static <OUT,OP extends StreamOperator<OUT>> |
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.
|
public static <OUT,OP extends StreamOperator<OUT>> Tuple2<OP,Optional<ProcessingTimeService>> createOperator(StreamOperatorFactory<OUT> operatorFactory, StreamTask<OUT,?> containingTask, StreamConfig configuration, Output<StreamRecord<OUT>> output, OperatorEventDispatcher operatorEventDispatcher)
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.ProcessingTimeService
instance it can access.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.