Class CollectSinkOperatorFactory<IN>
- java.lang.Object
-
- org.apache.flink.streaming.api.operators.AbstractStreamOperatorFactory<OUT>
-
- org.apache.flink.streaming.api.operators.SimpleOperatorFactory<OUT>
-
- org.apache.flink.streaming.api.operators.SimpleUdfStreamOperatorFactory<Object>
-
- org.apache.flink.streaming.api.operators.collect.CollectSinkOperatorFactory<IN>
-
- All Implemented Interfaces:
Serializable,CoordinatedOperatorFactory<Object>,StreamOperatorFactory<Object>,UdfStreamOperatorFactory<Object>,ProcessingTimeServiceAware
public class CollectSinkOperatorFactory<IN> extends SimpleUdfStreamOperatorFactory<Object> implements CoordinatedOperatorFactory<Object>
The Factory class forCollectSinkOperator.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.flink.configuration.ConfigOption<org.apache.flink.configuration.MemorySize>MAX_BATCH_SIZEstatic org.apache.flink.configuration.ConfigOption<Duration>SOCKET_TIMEOUT-
Fields inherited from class org.apache.flink.streaming.api.operators.AbstractStreamOperatorFactory
chainingStrategy, processingTimeService
-
-
Constructor Summary
Constructors Constructor Description CollectSinkOperatorFactory(org.apache.flink.api.common.typeutils.TypeSerializer<IN> serializer, String accumulatorName)CollectSinkOperatorFactory(org.apache.flink.api.common.typeutils.TypeSerializer<IN> serializer, String accumulatorName, org.apache.flink.configuration.MemorySize maxBatchSize, Duration socketTimeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends StreamOperator<Object>>
TcreateStreamOperator(StreamOperatorParameters<Object> parameters)Create the operator.OperatorCoordinator.ProvidergetCoordinatorProvider(String operatorName, OperatorID operatorID)Get the operator coordinator provider for this operator.intgetSocketTimeoutMillis()-
Methods inherited from class org.apache.flink.streaming.api.operators.SimpleUdfStreamOperatorFactory
getUserFunction, getUserFunctionClassName
-
Methods inherited from class org.apache.flink.streaming.api.operators.SimpleOperatorFactory
getOperator, getOperatorAttributes, getStreamOperatorClass, isInputTypeConfigurable, isLegacySource, isOutputTypeConfigurable, isStreamSource, of, setInputType, setOutputType
-
Methods inherited from class org.apache.flink.streaming.api.operators.AbstractStreamOperatorFactory
getChainingStrategy, getMailboxExecutor, setChainingStrategy, setMailboxExecutor, setProcessingTimeService
-
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
getChainingStrategy, getOperatorAttributes, getStreamOperatorClass, isInputTypeConfigurable, isLegacySource, isOutputTypeConfigurable, isStreamSource, setChainingStrategy, setInputType, setOutputType
-
-
-
-
Field Detail
-
MAX_BATCH_SIZE
public static final org.apache.flink.configuration.ConfigOption<org.apache.flink.configuration.MemorySize> MAX_BATCH_SIZE
-
SOCKET_TIMEOUT
public static final org.apache.flink.configuration.ConfigOption<Duration> SOCKET_TIMEOUT
-
-
Method Detail
-
getSocketTimeoutMillis
public int getSocketTimeoutMillis()
-
createStreamOperator
public <T extends StreamOperator<Object>> T createStreamOperator(StreamOperatorParameters<Object> parameters)
Description copied from interface:StreamOperatorFactoryCreate the operator. Sets access to the context and the output.- Specified by:
createStreamOperatorin interfaceCoordinatedOperatorFactory<IN>- Specified by:
createStreamOperatorin interfaceStreamOperatorFactory<IN>- Overrides:
createStreamOperatorin classSimpleOperatorFactory<Object>
-
getCoordinatorProvider
public OperatorCoordinator.Provider getCoordinatorProvider(String operatorName, OperatorID operatorID)
Description copied from interface:CoordinatedOperatorFactoryGet the operator coordinator provider for this operator.- Specified by:
getCoordinatorProviderin interfaceCoordinatedOperatorFactory<IN>- Parameters:
operatorName- the name of the operator.operatorID- the id of the operator.- Returns:
- the provider of the
OperatorCoordinatorfor this operator.
-
-