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.connectors.pulsar.StartCursor#

class StartCursor(_j_start_cursor)[source]#

A factory class for users to specify the start position of a pulsar subscription. Since it would be serialized into split. The implementation for this interface should be well considered. I don’t recommend adding extra internal state for this implementation.

This class would be used only for SubscriptionType.Exclusive and SubscriptionType.Failover.

Methods

default_start_cursor()

earliest()

from_message_id(message_id[, inclusive])

Find the available message id and start consuming from it.

from_message_time(timestamp)

This method is designed for seeking message from event time.

from_publish_time(timestamp)

Seek the start position by using message publish time.

latest()

previous

pyflink.datastream.connectors.pulsar.SubscriptionType

next

pyflink.datastream.connectors.pulsar.StopCursor

On this page
  • StartCursor
Show Source

Created using Sphinx 5.3.0.