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
  • DataStream
  • pyflink.datastream.data_stream.CachedDataStream.partition_custom

pyflink.datastream.data_stream.CachedDataStream.partition_custom#

CachedDataStream.partition_custom(partitioner: Callable | Partitioner, key_selector: Callable | KeySelector) → DataStream#

Partitions a DataStream on the key returned by the selector, using a custom partitioner. This method takes the key selector to get the key to partition on, and a partitioner that accepts the key type.

Note that this method works only on single field keys, i.e. the selector cannot return tuples of fields.

Parameters:
  • partitioner – The partitioner to assign partitions to keys.

  • key_selector – The KeySelector with which the DataStream is partitioned.

Returns:

The partitioned DataStream.

previous

pyflink.datastream.data_stream.CachedDataStream.assign_timestamps_and_watermarks

next

pyflink.datastream.data_stream.CachedDataStream.add_sink

On this page
  • CachedDataStream.partition_custom()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.