Class SlidingWindows

All Implemented Interfaces:
Serializable, HasDisplayData

public class SlidingWindows extends NonMergingWindowFn<Object,IntervalWindow>
A WindowFn that windows values into possibly overlapping fixed-size timestamp-based windows.

For example, in order to window data into 10 minute windows that update every minute:


 PCollection<Integer> items = ...;
 PCollection<Integer> windowedItems = items.apply(
   Window.<Integer>into(SlidingWindows.of(Duration.standardMinutes(10))));
 
See Also: