Package org.apache.kafka.streams.kstream
Interface Merger<K,V>
- Type Parameters:
K- key typeV- aggregate value type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The interface for merging aggregate values for
SessionWindows with the given key.-
Method Summary
-
Method Details
-
apply
Compute a new aggregate from the key and two aggregates.- Parameters:
aggKey- the key of the recordaggOne- the first aggregateaggTwo- the second aggregate- Returns:
- the new aggregate value
-