Ctrl+K
Logo image Logo image

Site Navigation

  • API Reference
  • Examples

Site Navigation

  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
  • PyFlink DataFrame
  • PyFlink Multimodal
  • PyFlink DataStream
    • StreamExecutionEnvironment
    • DataStream
    • Functions
    • State
    • Timer
    • Window
    • Checkpoint
    • Side Outputs
    • Asynchronous I/O
    • Connectors
    • Formats
  • PyFlink Common

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

Show Source

Created using Sphinx 4.5.0.