Module kafka

Source

Structsยง

GlueConsumerContext ๐Ÿ”’
An implementation of ConsumerContext that forwards statistics to the worker
HealthStatus ๐Ÿ”’
KafkaResumeUpperProcessor
Processes resume_uppers stream updates, committing them upstream and storing them in the progress_statistics to be emitted later.
KafkaSourceReader
Contains all information necessary to ingest data from Kafka
PartialProgressStatistics ๐Ÿ”’
A partially-filled version of ProgressStatisticsUpdate. This allows us to only emit updates when offset_known is updated by the metadata thread.
PartitionCapability ๐Ÿ”’
PartitionConsumer ๐Ÿ”’
Wrapper around a partition containing the underlying consumer
SourceOutputInfo ๐Ÿ”’

Enumsยง

KafkaHeaderParseError
MetadataUpdate ๐Ÿ”’
An update produced by the metadata fetcher.

Functionsยง

construct_source_message ๐Ÿ”’
fetch_partition_info ๐Ÿ”’
Fetches the list of partitions and their corresponding high watermark.
render_metadata_fetcher ๐Ÿ”’
Render the metadata fetcher of a Kafka source.
render_reader ๐Ÿ”’
Render the reader of a Kafka source.
responsible_for_pid ๐Ÿ”’
Computes whether this worker is responsible for consuming a partition. It assigns partitions to workers in a round-robin fashion, starting at an arbitrary worker based on the hash of the source id.
spawn_metadata_thread ๐Ÿ”’

Type Aliasesยง

HighWatermark ๐Ÿ”’
The high watermark offsets of a Kafka partition.