Class DynamicProcessingTimeSessionWindows<T>

  • Type Parameters:
    T - The type of the input elements
    All Implemented Interfaces:
    Serializable

    @PublicEvolving
    public class DynamicProcessingTimeSessionWindows<T>
    extends MergingWindowAssigner<T,​TimeWindow>
    A WindowAssigner that windows elements into sessions based on the current processing time. Windows cannot overlap.

    For example, in order to window into windows with a dynamic time gap:

    
     DataStream<Tuple2<String, Integer>> in = ...;
     KeyedStream<String, Tuple2<String, Integer>> keyed = in.keyBy(...);
     WindowedStream<Tuple2<String, Integer>, String, TimeWindows> windowed =
       keyed.window(DynamicProcessingTimeSessionWindows.withDynamicGap({@link SessionWindowTimeGapExtractor }));
     
    See Also:
    Serialized Form