Skip to main content
Ctrl+K
PyFlink 1.20+vvr.11.7.dev0 documentation - Home PyFlink 1.20+vvr.11.7.dev0 documentation - Home
  • API Reference
  • Examples
  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
  • PyFlink DataStream
    • StreamExecutionEnvironment
    • DataStream
    • Functions
    • State
    • Timer
    • Window
    • Checkpoint
    • Side Outputs
    • Asynchronous I/O
    • Connectors
    • Formats
  • PyFlink DataFrame
  • PyFlink Common
  • API Reference
  • PyFlink DataStream
  • Window
  • pyflink.datastream.window.TumblingProcessingTimeWindows

pyflink.datastream.window.TumblingProcessingTimeWindows#

class TumblingProcessingTimeWindows(size: int, offset: int)[source]#

A WindowAssigner that windows elements into windows based on the current system time of the machine the operation is running on. Windows cannot overlap.

For example, in order to window into windows of 1 minute, every 10 seconds:

>>> data_stream.key_by(lambda x: x[0], key_type=Types.STRING()) \
...     .window(TumblingProcessingTimeWindows.of(Time.minutes(1), Time.seconds(10)))

Methods

assign_windows(element, timestamp, context)

get_default_trigger(env)

get_window_serializer()

is_event_time()

of(size[, offset])

Creates a new TumblingProcessingTimeWindows WindowAssigner that assigns elements to time windows based on the element timestamp and offset.

previous

pyflink.datastream.window.CountSlidingWindowAssigner

next

pyflink.datastream.window.TumblingEventTimeWindows

On this page
  • TumblingProcessingTimeWindows

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.