flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gyula Fóra <gyf...@apache.org>
Subject Streaming groupby and aggregation by field expressions
Date Wed, 05 Nov 2014 17:37:46 GMT
Hey guys,

Just a quick note on some upcoming API updates for the Streaming api.

Now it will be possible to use field expressions for both grouping and
aggregations in the streaming api. You can check it out here

Or in a concise form:
DataStream<Word> counts = text.flatMap(new Tokenizer()).groupBy("word")

I will still do some more testing before it will be available in the master

I am also planning to extend aggregations to more fields at the same time
sum(1,2,2) or max("a","c").


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message