Class AbstractStreamOperatorFactory<OUT>
- java.lang.Object
-
- org.apache.flink.streaming.api.operators.AbstractStreamOperatorFactory<OUT>
-
- All Implemented Interfaces:
Serializable,StreamOperatorFactory<OUT>,ProcessingTimeServiceAware
- Direct Known Subclasses:
CommitterOperatorFactory,ContinuousFileReaderOperatorFactory,SimpleOperatorFactory,SinkWriterOperatorFactory,SourceOperatorFactory,TimestampsAndWatermarksOperatorFactory,WindowOperatorFactory
@Experimental public abstract class AbstractStreamOperatorFactory<OUT> extends Object implements StreamOperatorFactory<OUT>, ProcessingTimeServiceAware
Base class for all stream operator factories. It implements some common methods and theProcessingTimeServiceAwareinterface which enables stream operators to accessProcessingTimeService.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ChainingStrategychainingStrategyprotected ProcessingTimeServiceprocessingTimeService
-
Constructor Summary
Constructors Constructor Description AbstractStreamOperatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChainingStrategygetChainingStrategy()Get the chaining strategy of operator factory.protected org.apache.flink.api.common.operators.MailboxExecutorgetMailboxExecutor()Provides the mailbox executor iff this factory implementsYieldingOperatorFactory.voidsetChainingStrategy(ChainingStrategy strategy)Set the chaining strategy for operator factory.voidsetMailboxExecutor(org.apache.flink.api.common.operators.MailboxExecutor mailboxExecutor)voidsetProcessingTimeService(ProcessingTimeService processingTimeService)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.streaming.api.operators.StreamOperatorFactory
createStreamOperator, getOperatorAttributes, getStreamOperatorClass, isInputTypeConfigurable, isLegacySource, isOutputTypeConfigurable, isStreamSource, setInputType, setOutputType
-
-
-
-
Field Detail
-
chainingStrategy
protected ChainingStrategy chainingStrategy
-
processingTimeService
protected transient ProcessingTimeService processingTimeService
-
-
Method Detail
-
setChainingStrategy
public void setChainingStrategy(ChainingStrategy strategy)
Description copied from interface:StreamOperatorFactorySet the chaining strategy for operator factory.- Specified by:
setChainingStrategyin interfaceStreamOperatorFactory<OUT>
-
getChainingStrategy
public ChainingStrategy getChainingStrategy()
Description copied from interface:StreamOperatorFactoryGet the chaining strategy of operator factory.- Specified by:
getChainingStrategyin interfaceStreamOperatorFactory<OUT>
-
setProcessingTimeService
public void setProcessingTimeService(ProcessingTimeService processingTimeService)
- Specified by:
setProcessingTimeServicein interfaceProcessingTimeServiceAware
-
setMailboxExecutor
public void setMailboxExecutor(org.apache.flink.api.common.operators.MailboxExecutor mailboxExecutor)
-
getMailboxExecutor
protected org.apache.flink.api.common.operators.MailboxExecutor getMailboxExecutor()
Provides the mailbox executor iff this factory implementsYieldingOperatorFactory.
-
-