Interface UdfOperator<O extends UdfOperator<O>>
-
- All Known Implementing Classes:
CoGroupOperator,CoGroupRawOperator,CrossOperator,CrossOperator.DefaultCross,CrossOperator.ProjectCross,FilterOperator,FlatMapOperator,GroupCombineOperator,GroupReduceOperator,JoinOperator,JoinOperator.DefaultJoin,JoinOperator.EquiJoin,JoinOperator.ProjectJoin,MapOperator,MapPartitionOperator,ReduceOperator,SingleInputUdfOperator,TwoInputUdfOperator
@Deprecated @Public public interface UdfOperator<O extends UdfOperator<O>>
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 interface marks operators as operators that execute user-defined functions (UDFs), such asRichMapFunction,RichReduceFunction, orRichCoGroupFunction. The UDF operators stand in contrast to operators that execute built-in operations, like aggregations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Map<String,DataSet<?>>getBroadcastSets()Deprecated.Gets the broadcast sets (name and data set) that have been added to context of the UDF.org.apache.flink.configuration.ConfigurationgetParameters()Deprecated.Gets the configuration parameters that will be passed to the UDF's open methodAbstractRichFunction.open(Configuration).org.apache.flink.api.common.operators.SemanticPropertiesgetSemanticProperties()Deprecated.Gets the semantic properties that have been set for the user-defined functions (UDF).OwithBroadcastSet(DataSet<?> data, String name)Deprecated.Adds a certain data set as a broadcast set to this operator.OwithParameters(org.apache.flink.configuration.Configuration parameters)Deprecated.Sets the configuration parameters for the UDF.
-
-
-
Method Detail
-
getParameters
org.apache.flink.configuration.Configuration getParameters()
Deprecated.Gets the configuration parameters that will be passed to the UDF's open methodAbstractRichFunction.open(Configuration). The configuration is set via thewithParameters(Configuration)method.- Returns:
- The configuration parameters for the UDF.
-
getBroadcastSets
@Internal Map<String,DataSet<?>> getBroadcastSets()
Deprecated.Gets the broadcast sets (name and data set) that have been added to context of the UDF. Broadcast sets are added to a UDF via the methodwithBroadcastSet(DataSet, String).- Returns:
- The broadcast data sets that have been added to this UDF.
-
getSemanticProperties
@Internal org.apache.flink.api.common.operators.SemanticProperties getSemanticProperties()
Deprecated.Gets the semantic properties that have been set for the user-defined functions (UDF).- Returns:
- The semantic properties of the UDF.
-
withParameters
O withParameters(org.apache.flink.configuration.Configuration parameters)
Deprecated.Sets the configuration parameters for the UDF. These are optional parameters that are passed to the UDF in theAbstractRichFunction.open(Configuration)method.- Parameters:
parameters- The configuration parameters for the UDF.- Returns:
- The operator itself, to allow chaining function calls.
-
withBroadcastSet
O withBroadcastSet(DataSet<?> data, String name)
Deprecated.Adds a certain data set as a broadcast set to this operator. Broadcasted data sets are available at all parallel instances of this operator. A broadcast data set is registered under a certain name, and can be retrieved under that name from the operators runtime context viaRuntimeContext.getBroadcastVariable(String).The runtime context itself is available in all UDFs via
AbstractRichFunction.getRuntimeContext().- Parameters:
data- The data set to be broadcast.name- The name under which the broadcast data set retrieved.- Returns:
- The operator itself, to allow chaining function calls.
-
-