OUT - The output type of the operator@Internal public interface StreamOperatorFactory<OUT> extends Serializable
StreamOperator.| 限定符和类型 | 方法和说明 |
|---|---|
<T extends StreamOperator<OUT>> |
createStreamOperator(StreamTask<?,?> containingTask,
StreamConfig config,
Output<StreamRecord<OUT>> output)
Create the operator.
|
ChainingStrategy |
getChainingStrategy()
Get the chaining strategy of operator factory.
|
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 |
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(StreamTask<?,?> containingTask, StreamConfig config, Output<StreamRecord<OUT>> output)
void setChainingStrategy(ChainingStrategy strategy)
ChainingStrategy getChainingStrategy()
default boolean isStreamSource()
StreamSource.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)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.