Re: Why FoldFunction deprecated?

2018-05-07 Thread Fabian Hueske
Hi, FoldFunction was deprecated because it doesn't support partial aggregation. AggregateFunction is much more expressive, however requires a bit more implementation effort. In favor of a concise API, FoldFunction was deprecated because it doesn't offer more functionality than AggregateFunction.

Why FoldFunction deprecated?

2018-05-04 Thread 陈梓立
I just write a code snip like ``` .fold(new Tuple2<>("", 0L), new FoldFunction>() { @Override public Tuple2 fold(Tuple2 acc, WikipediaEditEvent event) { acc.f0 =