You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by GitBox <gi...@apache.org> on 2018/12/22 06:25:42 UTC

[GitHub] nwangtw commented on a change in pull request #3132: Add sum/min/max reducers

nwangtw commented on a change in pull request #3132: Add sum/min/max reducers
URL: https://github.com/apache/incubator-heron/pull/3132#discussion_r243715908
 
 

 ##########
 File path: examples/src/java/org/apache/heron/examples/streamlet/WindowedWordCountTopology.java
 ##########
 @@ -71,7 +71,7 @@ public static void main(String[] args) throws Exception {
             // Value extractor (the value is always 1)
             word -> 1,
             WindowConfig.TumblingCountWindow(50),
-            (x, y) -> x + y
+            StreamletReducers::sum
 
 Review comment:
   Ah. Right.
   
   It is in examples/ and I didn't catch it.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services