KTable<K, V> filter(
Predicate<? super K, ? super V> predicate)
KTable<K, V> filter(
Predicate<? super K, ? super V> predicate,
Materialized<K, V, KeyValueStore<Bytes, byte[]>> materialized)
KTable API — Changelog Stream
KTable is the abstraction of a changelog stream from a primary-keyed table. Each record in the changelog stream is an update on the primary-keyed table with the record key as the primary key.
KTable assumes that records from the source topic that have null keys are simply dropped.
KTable can be created directly from a Kafka topic (using StreamsBuilder.table operator), as a result of transformations on an existing KTable, or aggregations (aggregate, count, and reduce) of the following abstractions:
-
KGroupedStream (KStream.groupBy and KStream.groupByKey aggregate stream operators)
-
SessionWindowedKStream (KGroupedStream.windowedBy stream operator)
-
TimeWindowedKStream (KGroupedStream.windowedBy stream operator with a TimeWindows window specification)
|
Tip
|
Use Scala API for Kafka Streams to make your Kafka Streams development more pleasant if Scala is your programming language. |
| Operator | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|