vjagadish1989 commented on a change in pull request #905: SAMZA-2055: [WIP] 
Async high level api
URL: https://github.com/apache/samza/pull/905#discussion_r262765309
 
 

 ##########
 File path: 
samza-api/src/main/java/org/apache/samza/operators/MessageStream.java
 ##########
 @@ -67,6 +68,16 @@
    */
   <OM> MessageStream<OM> flatMap(FlatMapFunction<? super M, ? extends OM> 
flatMapFn);
 
+  /**
+   * Applies the provided 1:n function to transform a message in this {@link 
MessageStream}
+   * to n messages in the transformed {@link MessageStream}
+   *
+   * @param asyncFlatMapFn the function to transform a message to zero or more 
messages
+   * @param <OM> the type of messages in the transformed {@link MessageStream}
+   * @return the transformed {@link MessageStream}
+   */
+  <OM> MessageStream<OM> asyncFlatMap(AsyncFlatMapFunction<? super M, ? 
extends OM> asyncFlatMapFn);
 
 Review comment:
   "s/asyncFlatMap/flatMapAsync" ; 
   
   The rest of our naming convention follows the xxxAsync format eg: 
processAsync

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to