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.EventTimeSessionWindows

pyflink.datastream.window.EventTimeSessionWindows#

class EventTimeSessionWindows(session_gap: int)[source]#

A WindowAssigner that windows elements into sessions based on the timestamp of the elements. Windows cannot overlap.

For example, Set the timestamp of the element to 1 minutes:

>>> data_stream.key_by(lambda x: x[0], key_type=Types.STRING()) \
...     .window(EventTimeSessionWindows.with_gap(Time.minutes(1)))

Methods

assign_windows(element, timestamp, context)

get_default_trigger(env)

get_window_serializer()

is_event_time()

merge_windows(windows, callback)

Determines which windows (if any) should be merged.

with_dynamic_gap(extractor)

Creates a new SessionWindows WindowAssigner that assigns elements to sessions based on the element timestamp.

with_gap(size)

Creates a new SessionWindows WindowAssigner that assigns elements to sessions based on the element timestamp.

previous

pyflink.datastream.window.ProcessingTimeSessionWindows

next

pyflink.datastream.window.DynamicProcessingTimeSessionWindows

On this page
  • EventTimeSessionWindows

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.