incubator-s4-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthieu Morel <>
Subject Re: Sliding window
Date Fri, 22 Feb 2013 19:01:29 GMT
Good questions - and thanks for pointing out the incomplete javadoc for the V parameter!

Have you tried customizing the "close()" method in your Slot implementation? This is called
when a new slot replaces the old one. That would be a convenient place to dump the slot data
to a file.

updateOpenSlot() is just to put data in the current slot.

Note that most things can be overriden, including the AbstractSlidingWindowPE class itself,
in order to better suit your specific needs.

Hope this helps,


On Feb 22, 2013, at 18:54 , medikare mds wrote:

> I'm trying to implement a time-based sliding window in my PE. I want a set of records
to be maintained in each slot. Whenever the time period elapses and a new slot is used, I
want the details of the old slot to get recorded in a file. Initially I faced problems in
determining what value the generic parameter V can take in the AbstractSlidingWindowPE. Then
I found out that it was a Collection object. But now I'm stuck on finding out how I can use
the updateOpenSlot() and getOpenSlot() functions properly. Can someone help me out?

View raw message