concept record in category kafka

This is an excerpt from Manning's book Kafka Streams in Action: Real-time apps and microservices with the Kafka Streams API.
Kafka Streams is a library that allows you to perform per-event processing of records. You can use it to work on data as it arrives, without grouping data in microbatches. You process each record as soon as it’s available.
Most of ZMart’s goals are time sensitive, in that you want to take action as soon as possible. Preferably, you’ll be able to collect information as events occur. Additionally, there are several ZMart locations across the country, so you’ll need all the transaction records to funnel into a single flow or stream of data for analysis. For these reasons, Kafka Streams is a perfect fit. Kafka Streams allows you to process records as they arrive and gives you the low-latency processing you require.
In Kafka Streams, you define a topology of processing nodes (I’ll use the terms processor and node interchangeably). One or more nodes will have as source Kafka topic(s), and you can add additional nodes, which are considered child nodes (if you aren’t familiar with what a Kafka topic is, don’t worry—I’ll explain in detail in chapter 2). Each child node can define other child nodes. Each processing node performs its assigned task and then forwards the record to each of its child nodes. This process of performing work and then forwarding data to any child nodes continues until every child node has executed its function.
The first step to creating any Kafka Streams application is to create a source node. The source node is responsible for consuming the records, from a topic, that will flow through the application. Figure 3.2 highlights the source node in the graph.
A predicate is a statement that accepts an object as a parameter and returns true or false depending on whether that object matches a given condition. You used predicates in the filter function to prevent records that didn’t match a given predicate from being forwarded in the topology. The KStream.branch method uses predicates to split records into new streams when a record matches a given predicate. The processor assigns a record to a stream on the first match and drops unmatched records.
ConsumerRecords<String, String> poll(long timeout) { ConsumerRecords<String, String> consumerRecords = ...consuming records #1 return interceptors.onConsume(consumerRecords); #2