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


이 페이지가 도움이 되었나요? 평가를 부탁드립니다.

다음에 대한 의견 보내기...

도움이 필요하시나요? 지원 페이지를 방문하세요.