Re: Flink DataStream and KeyBy

2016-01-14 Thread Aljoscha Krettek
Hi, using .keyBy(0) on a Scala DataStream[Tuple2] where Tuple2 is a Scala Tuple should work. Look, for example, at the SocketTextStreamWordCount example in Flink. Cheers, Aljoscha > On 13 Jan 2016, at 18:25, Tzu-Li (Gordon) Tai wrote: > > Hi Saiph, > > In Flink, the key for keyBy() can be pro

Re: Flink DataStream and KeyBy

2016-01-13 Thread Tzu-Li (Gordon) Tai
Hi Saiph, In Flink, the key for keyBy() can be provided in different ways: https://ci.apache.org/projects/flink/flink-docs-master/apis/programming_guide.html#specifying-keys (the doc is for DataSet API, but specifying keys is basically the same for DataStream and DataSet). As described in the doc