Ctrl+K
Logo image Logo image

Site Navigation

  • API Reference
  • Examples

Site Navigation

  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
  • PyFlink DataStream
    • StreamExecutionEnvironment
    • DataStream
    • Functions
    • State
    • Timer
    • Window
    • Checkpoint
    • Side Outputs
    • Connectors
    • Formats
  • PyFlink Common

pyflink.datastream.window.CountSlidingWindowAssigner#

class CountSlidingWindowAssigner(window_size: int, window_slide: int)[source]#

A WindowAssigner that windows elements into sliding windows based on the count number of the elements. Windows can possibly overlap.

Methods

assign_windows(element, timestamp, context)

param element

The element to which windows should be assigned.

get_default_trigger(env)

param env

The StreamExecutionEnvironment used to compile the DataStream job.

get_window_serializer()

return

A TypeSerializer for serializing windows that are assigned by this WindowAssigner.

is_event_time()

return

True if elements are assigned to windows based on event time, false otherwise.

of(window_size, window_slide)

previous

pyflink.datastream.window.CountTumblingWindowAssigner

next

pyflink.datastream.window.TumblingProcessingTimeWindows

Show Source

Created using Sphinx 4.5.0.