Class MapOperator<IN,​OUT>

  • Type Parameters:
    IN - The type of the data set consumed by the operator.
    OUT - The type of the data set created by the operator.
    All Implemented Interfaces:
    UdfOperator<MapOperator<IN,​OUT>>

    @Deprecated
    @Public
    public class MapOperator<IN,​OUT>
    extends SingleInputUdfOperator<IN,​OUT,​MapOperator<IN,​OUT>>
    Deprecated.
    All Flink DataSet APIs are deprecated since Flink 1.18 and will be removed in a future Flink major version. You can still build your application in DataSet, but you should move to either the DataStream and/or Table API.
    This operator represents the application of a "map" function on a data set, and the result data set produced by the function.
    See Also:
    MapFunction, FLIP-131: Consolidate the user-facing Dataflow SDKs/APIs (and deprecate the DataSet API
    • Field Detail

      • function

        protected final org.apache.flink.api.common.functions.MapFunction<IN,​OUT> function
        Deprecated.
      • defaultName

        protected final String defaultName
        Deprecated.
    • Constructor Detail

      • MapOperator

        public MapOperator​(DataSet<IN> input,
                           org.apache.flink.api.common.typeinfo.TypeInformation<OUT> resultType,
                           org.apache.flink.api.common.functions.MapFunction<IN,​OUT> function,
                           String defaultName)
        Deprecated.
    • Method Detail

      • translateToDataFlow

        protected org.apache.flink.api.common.operators.base.MapOperatorBase<IN,​OUT,​org.apache.flink.api.common.functions.MapFunction<IN,​OUT>> translateToDataFlow​(org.apache.flink.api.common.operators.Operator<IN> input)
        Deprecated.
        Description copied from class: SingleInputOperator
        Translates this operation to a data flow operator of the common data flow API.
        Specified by:
        translateToDataFlow in class SingleInputOperator<IN,​OUT,​MapOperator<IN,​OUT>>
        Parameters:
        input - The data flow operator that produces this operation's input data.
        Returns:
        The translated data flow operator.