Kafka reader
Module to define behaviour to read from Kafka.
KafkaReader
¶
Bases: Reader
Class to read from Kafka.
Source code in mkdocs/lakehouse_engine/packages/io/readers/kafka_reader.py
__init__(input_spec)
¶
Construct KafkaReader instances.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_spec |
InputSpec
|
input specification. |
required |
read()
¶
Read Kafka data.
Returns:
Type | Description |
---|---|
DataFrame
|
A dataframe containing the data from Kafka. |