pyflink.datastream.window.TumblingEventTimeWindows#
- class TumblingEventTimeWindows(size: int, offset: int)[source]#
A WindowAssigner that windows elements into windows based on the timestamp of the elements. Windows cannot overlap.
For example, in order to window into windows of 1 minute:
>>> data_stream.key_by(lambda x: x[0], key_type=Types.STRING()) \ ... .window(TumblingEventTimeWindows.of(Time.minutes(1)))
Methods
assign_windows(element, timestamp, context)get_default_trigger(env)get_window_serializer()is_event_time()of(size[, offset])Creates a new TumblingEventTimeWindows WindowAssigner that assigns elements to time windows based on the element timestamp, offset and a staggering offset, depending on the staggering policy.