Re: Maxby() and KeyBy() question

2016-06-09 Thread iñaki williams
Understood! I have created a WindowStream and now it is working. Thanks ! El jueves, 9 de junio de 2016, Fabian Hueske escribió: > Hi, > > you are computing a running aggregate, i.e., you're getting one output > record for each input record and the output record is the record with the > larges

Re: Maxby() and KeyBy() question

2016-06-09 Thread Fabian Hueske
Hi, you are computing a running aggregate, i.e., you're getting one output record for each input record and the output record is the record with the largest value observed so far. If the record with the largest value is the first, the record is sent out another time. This is what happened with Mat

Maxby() and KeyBy() question

2016-06-09 Thread iñaki williams
Hi again! I am working with two DataStreams, I want to get the maximun value from each pair of them, for example: //Informacion (matchName, LocalOdd, AwayOdd) Informacion info1= new Informacion("Match1", 1.10, 3.22); Informacion info2= new Informacion("Match2", 2.11, 1.10);