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.data_stream.KeyedStream.key_by#

KeyedStream.key_by(key_selector: Union[Callable, KeySelector], key_type: Optional[TypeInformation] = None) → KeyedStream[source]#

Creates a new KeyedStream that uses the provided key for partitioning its operator states.

Parameters
  • key_selector – The KeySelector to be used for extracting the key for partitioning.

  • key_type – The type information describing the key type.

Returns

The DataStream with partitioned state(i.e. KeyedStream).

previous

pyflink.datastream.data_stream.KeyedStream.add_sink

next

pyflink.datastream.data_stream.KeyedStream.process

On this page
  • KeyedStream.key_by()
Show Source

Created using Sphinx 5.3.0.