OUT - The output type of the operator@PublicEvolving public interface StreamOperatorFactory<OUT> extends Serializable
StreamOperator.| Modifier and Type | Method and Description |
|---|---|
<T extends StreamOperator<OUT>> |
createStreamOperator(StreamOperatorParameters<OUT> parameters)
Create the operator.
|
ChainingStrategy |
getChainingStrategy()
Get the chaining strategy of operator factory.
|
default OperatorAttributes |
getOperatorAttributes()
Is called to get the OperatorAttributes of the operator.
|
Class<? extends StreamOperator> |
getStreamOperatorClass(ClassLoader classLoader)
Returns the runtime class of the stream operator.
|
default boolean |
isInputTypeConfigurable()
If the stream operator need to be configured with the data type they will operate on.
|
default boolean |
isLegacySource() |
default boolean |
isOutputTypeConfigurable()
If the stream operator need access to the output type information at
StreamGraph
generation. |
default boolean |
isStreamSource()
Is this factory for
StreamSource. |
void |
setChainingStrategy(ChainingStrategy strategy)
Set the chaining strategy for operator factory.
|
default void |
setInputType(org.apache.flink.api.common.typeinfo.TypeInformation<?> type,
org.apache.flink.api.common.ExecutionConfig executionConfig)
Is called by the
StreamGraph.addOperator(java.lang.Integer, java.lang.String, java.lang.String, org.apache.flink.streaming.api.operators.StreamOperatorFactory<OUT>, org.apache.flink.api.common.typeinfo.TypeInformation<IN>, org.apache.flink.api.common.typeinfo.TypeInformation<OUT>, java.lang.String) method when the StreamGraph is
generated. |
default void |
setOutputType(org.apache.flink.api.common.typeinfo.TypeInformation<OUT> type,
org.apache.flink.api.common.ExecutionConfig executionConfig)
Is called by the
StreamGraph.addOperator(java.lang.Integer, java.lang.String, java.lang.String, org.apache.flink.streaming.api.operators.StreamOperatorFactory<OUT>, org.apache.flink.api.common.typeinfo.TypeInformation<IN>, org.apache.flink.api.common.typeinfo.TypeInformation<OUT>, java.lang.String) method when the StreamGraph is
generated. |
<T extends StreamOperator<OUT>> T createStreamOperator(StreamOperatorParameters<OUT> parameters)
void setChainingStrategy(ChainingStrategy strategy)
ChainingStrategy getChainingStrategy()
default boolean isStreamSource()
StreamSource.default boolean isLegacySource()
default boolean isOutputTypeConfigurable()
StreamGraph
generation. This can be useful for cases where the output type is specified by the returns
method and, thus, after the stream operator has been created.default void setOutputType(org.apache.flink.api.common.typeinfo.TypeInformation<OUT> type, org.apache.flink.api.common.ExecutionConfig executionConfig)
StreamGraph.addOperator(java.lang.Integer, java.lang.String, java.lang.String, org.apache.flink.streaming.api.operators.StreamOperatorFactory<OUT>, org.apache.flink.api.common.typeinfo.TypeInformation<IN>, org.apache.flink.api.common.typeinfo.TypeInformation<OUT>, java.lang.String) method when the StreamGraph is
generated. The method is called with the output TypeInformation which is also used
for the StreamTask output serializer.type - Output type information of the StreamTaskexecutionConfig - Execution configurationdefault boolean isInputTypeConfigurable()
default void setInputType(org.apache.flink.api.common.typeinfo.TypeInformation<?> type,
org.apache.flink.api.common.ExecutionConfig executionConfig)
StreamGraph.addOperator(java.lang.Integer, java.lang.String, java.lang.String, org.apache.flink.streaming.api.operators.StreamOperatorFactory<OUT>, org.apache.flink.api.common.typeinfo.TypeInformation<IN>, org.apache.flink.api.common.typeinfo.TypeInformation<OUT>, java.lang.String) method when the StreamGraph is
generated.type - The data type of the input.executionConfig - The execution config for this parallel execution.Class<? extends StreamOperator> getStreamOperatorClass(ClassLoader classLoader)
@Experimental default OperatorAttributes getOperatorAttributes()
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.