Interface OutputTypeConfigurable<OUT>
-
@PublicEvolving public interface OutputTypeConfigurable<OUT>Stream operators can implement this interface if they need access to the output type information atorg.apache.flink.streaming.api.graph.StreamGraphgeneration. 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.NOTE: this class was moved from flink-streaming-java to the same package in flink-core. This was required in order to avoid cyclic dependencies for internal connectors, such as flink-connector-datagen that is used in flink-streaming-java but also relies on
OutputTypeConfigurable. Since flink-core is the dependency of flink-streaming-java, this does not introduce breaking changes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetOutputType(TypeInformation<OUT> outTypeInfo, ExecutionConfig executionConfig)Is called by theorg.apache.flink.streaming.api.graph.StreamGraph#addOperator(Integer, String, StreamOperator, TypeInformation, TypeInformation, String)method when theorg.apache.flink.streaming.api.graph.StreamGraphis generated.
-
-
-
Method Detail
-
setOutputType
void setOutputType(TypeInformation<OUT> outTypeInfo, ExecutionConfig executionConfig)
Is called by theorg.apache.flink.streaming.api.graph.StreamGraph#addOperator(Integer, String, StreamOperator, TypeInformation, TypeInformation, String)method when theorg.apache.flink.streaming.api.graph.StreamGraphis generated. The method is called with the outputTypeInformationwhich is also used for theorg.apache.flink.streaming.runtime.tasks.StreamTaskoutput serializer.- Parameters:
outTypeInfo- Output type information of theorg.apache.flink.streaming.runtime.tasks.StreamTaskexecutionConfig- Execution configuration
-
-