TopologyBuilder及其API

TopologyBuilder是一个用于构建处理器拓扑的组件,允许创建源、处理器和接收器的非循环图。它允许添加源、处理器、状态存储和接收器,并在KafkaStreams实例中使用这些构建的拓扑进行数据处理。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

A component that is used to build a ProcessorTopology. A topology contains an acyclic graph of sources, processors, and sinks. A source is a node in the graph that consumes one or more Kafka topics and forwards them to its child nodes. A processor is a node in the graph that receives input records from upstream nodes, processes that records, and optionally forwarding new records to one or all of its children. Finally, a sink is a node in the graph that receives records from upstream nodes and writes them to a Kafka topic. This builder allows you to construct an acyclic graph of these nodes, and the builder is then passed into a new KafkaStreams instance that will then begin consuming, processing, and producing records.

用于构建处理器拓扑的组件。拓扑包含源、处理器和接收器的非循环图。源是图形中的一个节点,它使用一个或多个Kafka主题并将其转发给它的子节点。处理器是图中的一个节点,它接收来自上游节点的输入记录,处理记录,并可选择地将新记录转发给它的一个或所有子节点。最后,sink是图中的一个节点,它接收来自上游节点的记录并将它们写入Kafka主题。这个构建器允许您构造这些节点的非循环图,然后将构建器传递到一个新的KafkaStreams实例,然后开始消费、处理和生成记录。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值