Kemux Stream object
Stream class definition.
A stream is a collection of input and output processors that are connected and ensure that messages are ingested, transformed, and sent to the correct output topics, while keeping the data schema consistent to the user's specifications.
Stream
dataclass
Stream Class
A class that connects the input processor with any number of output processors.
| Attributes: |
|
|---|
add_output(stream_output, output_schema=None)
Add an output processor to the stream.
| Parameters: |
|
|---|
process(event)
async
Process incoming messages as separate Events coming from input Kafka topic.
| Parameters: |
|
|---|
remove_output(output_topic_name)
Remove an output processor from the stream.
| Parameters: |
|
|---|
set_input(stream_input, input_schema=None)
Set the input processor of the stream.
| Parameters: |
|
|---|
topics()
Get the input and output topics of the stream.
| Returns: |
|
|---|
| Raises: |
|
|---|
find_streams_order(info)
Find the order of the streams based on their dependency on each other.
| Parameters: |
|
|---|
| Returns: |
|
|---|