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 for
CollectSinkOperator.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.flink.configuration.ConfigOption<org.apache.flink.configuration.MemorySize>static final org.apache.flink.configuration.ConfigOption<Duration>Fields inherited from class org.apache.flink.streaming.api.operators.AbstractStreamOperatorFactory
chainingStrategy, processingTimeService -
Constructor Summary
ConstructorsConstructorDescriptionCollectSinkOperatorFactory(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
Modifier and TypeMethodDescription<T extends StreamOperator<Object>>
TcreateStreamOperator(StreamOperatorParameters<Object> parameters) Create the operator.getCoordinatorProvider(String operatorName, OperatorID operatorID) Get the operator coordinator provider for this operator.intMethods inherited from class org.apache.flink.streaming.api.operators.SimpleUdfStreamOperatorFactory
getUserFunction, getUserFunctionClassNameMethods inherited from class org.apache.flink.streaming.api.operators.SimpleOperatorFactory
getOperator, getOperatorAttributes, getStreamOperatorClass, isInputTypeConfigurable, isLegacySource, isOutputTypeConfigurable, isStreamSource, of, setInputType, setOutputTypeMethods inherited from class org.apache.flink.streaming.api.operators.AbstractStreamOperatorFactory
getChainingStrategy, getMailboxExecutor, setChainingStrategy, setMailboxExecutor, setProcessingTimeServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.streaming.api.operators.StreamOperatorFactory
getChainingStrategy, getOperatorAttributes, getStreamOperatorClass, isInputTypeConfigurable, isLegacySource, isOutputTypeConfigurable, isStreamSource, setChainingStrategy, setInputType, setOutputType
-
Field Details
-
MAX_BATCH_SIZE
public static final org.apache.flink.configuration.ConfigOption<org.apache.flink.configuration.MemorySize> MAX_BATCH_SIZE -
SOCKET_TIMEOUT
-
-
Constructor Details
-
CollectSinkOperatorFactory
-
CollectSinkOperatorFactory
-
-
Method Details
-
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.
-