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/11/13 23:46:21 UTC

[GitHub] nwangtw commented on a change in pull request #3109: Add withStream() in Streamlet to support stream selection

nwangtw commented on a change in pull request #3109: Add withStream() in Streamlet to support stream selection
URL: https://github.com/apache/incubator-heron/pull/3109#discussion_r233266843
 
 

 ##########
 File path: heron/api/src/java/org/apache/heron/streamlet/Streamlet.java
 ##########
 @@ -71,6 +71,22 @@
    */
   int getNumPartitions();
 
+  /**
+   * Set the id of the stream to be used by the children nodes.
+   * Usage (assuming source is a Streamlet object with two output streams: stream1 and stream2):
+   *   source.withStream("stream1").filter(...).log();
+   *   source.withStream("stream2").filter(...).log();
+   * @param streamId The specified stream id
+   * @return Returns back the Streamlet with changed stream id
+   */
+  Streamlet<R> withStream(String streamId);
 
 Review comment:
   Yeah. A component can generates multiple different streams (such as 3 integer streams: odd, even, all) and the next component needs to specify which one to accept data.
   
   UI doesn't show this information currently and it could be a useful feature to add. And grouping strategy is another important information on the edges.

----------------------------------------------------------------
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