@Deprecated @Public public interface UdfOperator<O extends UdfOperator<O>>
RichMapFunction
, RichReduceFunction
, or RichCoGroupFunction
. The UDF operators stand in contrast
to operators that execute built-in operations, like aggregations.Modifier and Type | Method and Description |
---|---|
Map<String,DataSet<?>> |
getBroadcastSets()
Deprecated.
Gets the broadcast sets (name and data set) that have been added to context of the UDF.
|
Configuration |
getParameters()
Deprecated.
Gets the configuration parameters that will be passed to the UDF's open method
AbstractRichFunction.open(Configuration) . |
SemanticProperties |
getSemanticProperties()
Deprecated.
Gets the semantic properties that have been set for the user-defined functions (UDF).
|
O |
withBroadcastSet(DataSet<?> data,
String name)
Deprecated.
Adds a certain data set as a broadcast set to this operator.
|
O |
withParameters(Configuration parameters)
Deprecated.
Sets the configuration parameters for the UDF.
|
Configuration getParameters()
AbstractRichFunction.open(Configuration)
. The
configuration is set via the withParameters(Configuration)
method.@Internal Map<String,DataSet<?>> getBroadcastSets()
withBroadcastSet(DataSet, String)
.@Internal SemanticProperties getSemanticProperties()
O withParameters(Configuration parameters)
AbstractRichFunction.open(Configuration)
method.parameters
- The configuration parameters for the UDF.O withBroadcastSet(DataSet<?> data, String name)
RuntimeContext.getBroadcastVariable(String)
.
The runtime context itself is available in all UDFs via AbstractRichFunction.getRuntimeContext()
.
data
- The data set to be broadcast.name
- The name under which the broadcast data set retrieved.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.