一、系统内置函数
Flink Table API 和 SQL 为用户提供了一组用于数据转换的内置函数。...数据准备
hello|word,hello|spark
hello|Flink,hello|java,hello|大数据老哥
编写代码
package udf
import org.apache.flink.streaming.api.scala...AggregationFunction 要求必须实现的方法:
除了上述方法之外,还有一些可选择实现的方法。...为处理完所有行后,将调用函数的 emitValue()方法来计算并返回最终结果。除了上述方法之外,还有一些可选择实现的方法。...数据准备
1,Latte,6
2,Milk,3
3,Breve,5
4,Mocha,8
5,Tea,4
代码如下
package udf
import org.apache.flink.streaming.api.scala