FixedWindows (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 FixedWindows

  • All Implemented Interfaces:
    HasDisplayData, Serializable


    public class FixedWindows
    extends PartitioningWindowFn<Object,IntervalWindow>
    A WindowFn that windows values into fixed-size timestamp-based windows.

    For example, in order to partition the data into 10 minute windows:

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


Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Dataflow