Github user arunmahadevan commented on a diff in the pull request:

    https://github.com/apache/storm/pull/2233#discussion_r133946525
  
    --- Diff: docs/Stream-API.md ---
    @@ -276,6 +276,21 @@ PairStream<String, Double> scores = ...
     // list of scores per user in the last window, e.g. ("alice", [10, 11, 
13]), ("bob", [15, 20])
     PairStream<String, Iterable<Integer>> userScores =  
scores.window(...).groupByKey(); 
     ```
    +
    +### <a name="coGroupbykey"></a> coGroupByKey
    +
    +`coGroupByKey` Groups the values of this stream with the values having the 
same key from the other stream.
    +
    +```java
    +// a stream of (key, value) pairs e.g. (k1, v1), (k2, v2), (k2, v3)
    +PairStream<String, Double> stream1 = ...
    +
    +// another stream of (key, value) pairs e.g. (k1, x1), (k1, x2), (k3, x3)
    +PairStream<String, Double> stream2 = ...
    --- End diff --
    
    can be `PairStream<String, String> stream1` to match with above comment.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to