You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2021/07/21 07:32:21 UTC

[GitHub] [kafka] showuon commented on a change in pull request #11100: MINOR: update doc to reflect the grace period change

showuon commented on a change in pull request #11100:
URL: https://github.com/apache/kafka/pull/11100#discussion_r673730072



##########
File path: docs/streams/developer-guide/dsl-api.html
##########
@@ -650,7 +650,7 @@ <h4 class="anchor-heading"><a id="streams_concepts_globalktable" class="anchor-l
 
 KTable&lt;byte[], String&gt; table = cogroupedStream.aggregate(initializer);
 
-KTable&lt;byte[], String&gt; table2 = cogroupedStream.windowedBy(TimeWindows.duration(500ms)).aggregate(initializer);</code></pre>
+KTable&lt;byte[], String&gt; table2 = cogroupedStream.windowedBy(TimeWindows.ofSizeWithNoGrace(Duration.ofMillis(500))).aggregate(initializer);</code></pre>

Review comment:
       TimeWindows doesn't have `duration` method. Fix it.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org