@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()
Gets the broadcast sets (name and data set) that have been added to context of the UDF.
|
org.apache.flink.configuration.Configuration |
getParameters()
Gets the configuration parameters that will be passed to the UDF's open method
AbstractRichFunction.open(Configuration). |
org.apache.flink.api.common.operators.SemanticProperties |
getSemanticProperties()
Gets the semantic properties that have been set for the user-defined functions (UDF).
|
O |
withBroadcastSet(DataSet<?> data,
String name)
Adds a certain data set as a broadcast set to this operator.
|
O |
withParameters(org.apache.flink.configuration.Configuration parameters)
Sets the configuration parameters for the UDF.
|
org.apache.flink.configuration.Configuration getParameters()
AbstractRichFunction.open(Configuration). The
configuration is set via the withParameters(Configuration) method.@Internal Map<String,DataSet<?>> getBroadcastSets()
withBroadcastSet(DataSet, String).@Internal org.apache.flink.api.common.operators.SemanticProperties getSemanticProperties()
O withParameters(org.apache.flink.configuration.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–2021 The Apache Software Foundation. All rights reserved.