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.kafka.KafkaOffsetsInitializer#

class KafkaOffsetsInitializer(j_initializer: JavaObject)[source]#

An interface for users to specify the starting / stopping offset of a KafkaPartitionSplit.

New in version 1.16.0.

Methods

committed_offsets([offset_reset_strategy])

Get an KafkaOffsetsInitializer which initializes the offsets to the committed offsets.

earliest()

Get an KafkaOffsetsInitializer which initializes the offsets to the earliest available offsets of each partition.

latest()

Get an KafkaOffsetsInitializer which initializes the offsets to the latest offsets of each partition.

offsets(offsets[, offset_reset_strategy])

Get an KafkaOffsetsInitializer which initializes the offsets to the specified offsets.

timestamp(timestamp)

Get an KafkaOffsetsInitializer which initializes the offsets in each partition so that the initialized offset is the offset of the first record whose record timestamp is greater than or equals the give timestamp.

previous

pyflink.datastream.connectors.kafka.KafkaOffsetResetStrategy

next

pyflink.datastream.connectors.kafka.KafkaSink

On this page
  • KafkaOffsetsInitializer
Show Source

Created using Sphinx 5.3.0.