Skip to content

Commit

Permalink
description KeyedGroupSumFuntion.java
Browse files Browse the repository at this point in the history
  • Loading branch information
kyguo committed Mar 2, 2020
1 parent 062dafc commit 6b288df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import org.apache.flink.util.Collector;

/**
* 目的:自定义实现keyBy()后的sum操作,利用KeyedState,实现每个Subtask中每个组的sum
* 目的:自定义实现keyBy()后的sum操作,利用KeyedState,实现每个Subtask中每个组的sum。其实可以实现远不止sum的功能,类似scala中的mapWithState
* 输入:spark hadoop scala java python js matlab php go spark hadoop java spark
* 输出:2> (python,1)
* 4> (hadoop,1)
Expand Down

0 comments on commit 6b288df

Please sign in to comment.