Hey guys, it is me again.
I somehow do not get the windowing working correctly.
In this first example I am just passing the incoming measurements (from a kafka topic) through the pipeline and sinking them in the logger. It clearly shows that measurements are coming in continuously: https://pastebin.com/Jua8Zvec
In this second example, I try to do a simple counting aggregation with a 1 minute tumbling window over the incoming measurements grouped by the record key (unique ID of raspberry pi, of which the measurement comes from): https://pastebin.com/PYtQKWAZ
When executing this second example, I am not getting any output (window results) at all, no matter how long I wait. What am I doing wrong here?
Thanks in advance!
.window(WindowDefinition.sliding(WINDOW_SIZE, WINDOW_SLIDE))
Ahh... That makes a lot of sense now. Thanks guys. :)
So to fix this, I have to either adjust all my own time units (except source partition timeout) to values of unit seconds, or use milliseconds and adjust the measurement timestamps accordingly? That explains now, why I didn't find many information about which time unit to use for the input parameters, if it depends on the input data timestamp unit.
It is possible that bigger lags are occurring within the measurement stream, but that is not a big deal. They are supposed to be discarded as the events are too late to be processed anyway.
entry()
traverseIterable(map.entrySet()).map(e -> Util.entry(e.getKey(), e.getValue())
;
return traverseIterable(correlationIds
.entrySet().stream()
.map(e -> entry(e.getKey(), e.getValue()))
.collect(Collectors.toList()));
@charmingarun_twitter
Hi, we'll be decommissioning this channel soon - please join us at https://slack.hazelcast.com