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
  • Connectors
  • pyflink.datastream.connectors.pulsar.RangeGenerator

pyflink.datastream.connectors.pulsar.RangeGenerator#

class RangeGenerator(j_range_generator)[source]#

A generator for generating the TopicRange for given topic. It was used for pulsar’s SubscriptionType#Key_Shared mode. TopicRange would be used in KeySharedPolicy for different pulsar source readers.

If you implement this interface, make sure that each TopicRange would be assigned to a specified source reader. Since flink parallelism is provided, make sure the pulsar message key’s hashcode is evenly distributed among these topic ranges.

Methods

fixed_key([support_null_key, keys, ...])

Pulsar didn't expose the key hash range method.

full()

Default implementation for SubscriptionType#Shared, SubscriptionType#Failover and SubscriptionType#Exclusive subscription.

previous

pyflink.datastream.connectors.pulsar.StopCursor

next

pyflink.datastream.connectors.pulsar.PulsarSource

On this page
  • RangeGenerator

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.