SlidingWindows (Google Cloud Dataflow SDK 1.9.1 API)

Google Cloud Dataflow SDK for Java, version 1.9.1

com.google.cloud.dataflow.sdk.transforms.windowing

Class SlidingWindows

  • All Implemented Interfaces:
    HasDisplayData, Serializable


    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:
    Serialized Form


Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Dataflow
Need help? Visit our support page.