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_r235448468
 
 

 ##########
 File path: 
heron/api/src/java/org/apache/heron/streamlet/impl/StreamletImpl.java
 ##########
 @@ -205,11 +207,37 @@ public int getNumPartitions() {
     return nPartitions;
   }
 
+  /**
+   * 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
+   */
+  @SuppressWarnings("HiddenField")
+  @Override
+  public Streamlet<R> withStream(String streamId) {
 
 Review comment:
   Heron has a check already and it runs during submission time. Not as good as 
compile time but should be fast enough. :)

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to