This is an automated email from the ASF dual-hosted git repository.

mjsax pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 63a6130af30 KAFKA-12943: update aggregating documentation (#12091)
63a6130af30 is described below

commit 63a6130af30536d67fca5802005695a84c875b5e
Author: Marco Aurelio Lotz <[email protected]>
AuthorDate: Thu Jul 7 23:00:05 2022 +0200

    KAFKA-12943: update aggregating documentation (#12091)
    
    Reviewers: Luke Chen <[email protected]>, Andrew Eugene Choi 
<[email protected]>, Matthias J. Sax <[email protected]>
---
 docs/streams/developer-guide/dsl-api.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/streams/developer-guide/dsl-api.html 
b/docs/streams/developer-guide/dsl-api.html
index 3d8454abb20..6b80656ef22 100644
--- a/docs/streams/developer-guide/dsl-api.html
+++ b/docs/streams/developer-guide/dsl-api.html
@@ -956,7 +956,7 @@ KGroupedTable&lt;byte[], String&gt; groupedTable = ...;
 KTable&lt;byte[], Long&gt; aggregatedStream = groupedStream.aggregate(
     () -&gt; 0L, /* initializer */
     (aggKey, newValue, aggValue) -&gt; aggValue + newValue.length(), /* adder 
*/
-    Materialized.as(&quot;aggregated-stream-store&quot;) /* state store name */
+    Materialized.&lt;String, Long, KeyValueStore&lt;Bytes, 
byte[]&gt;&gt;as(&quot;aggregated-stream-store&quot;) /* state store name */
         .withValueSerde(Serdes.Long()); /* serde for aggregate value */
 
 // Aggregating a KGroupedTable (note how the value type changes from String to 
Long)
@@ -964,7 +964,7 @@ KTable&lt;byte[], Long&gt; aggregatedTable = 
groupedTable.aggregate(
     () -&gt; 0L, /* initializer */
     (aggKey, newValue, aggValue) -&gt; aggValue + newValue.length(), /* adder 
*/
     (aggKey, oldValue, aggValue) -&gt; aggValue - oldValue.length(), /* 
subtractor */
-    Materialized.as(&quot;aggregated-table-store&quot;) /* state store name */
+    Materialized.&lt;String, Long, KeyValueStore&lt;Bytes, 
byte[]&gt;&gt;as(&quot;aggregated-table-store&quot;) /* state store name */
        .withValueSerde(Serdes.Long()) /* serde for aggregate value */
 
 

Reply via email to