You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by GitBox <gi...@apache.org> on 2021/02/17 00:49:04 UTC

[GitHub] [samza] rmatharu commented on a change in pull request #1463: SAMZA-2621: Support custom operator name in MessageStream

rmatharu commented on a change in pull request #1463:
URL: https://github.com/apache/samza/pull/1463#discussion_r577241960



##########
File path: samza-api/src/main/java/org/apache/samza/operators/MessageStream.java
##########
@@ -49,25 +49,51 @@
 @InterfaceStability.Evolving
 public interface MessageStream<M> {
 
+  /**
+   * Equivalent to {@code map("", mapFn)}.
+   * @see #map(String, MapFunction)
+   */
+  default <OM> MessageStream<OM> map(MapFunction<? super M, ? extends OM> mapFn) {
+    return map("", mapFn);
+  }
+
   /**
    * Applies the provided 1:1 function to messages in this {@link MessageStream} and returns the
    * transformed {@link MessageStream}.
    *
+   * @param desc description of this mapping operation

Review comment:
       +1 "tag" or "name" might be better.




----------------------------------------------------------------
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:
users@infra.apache.org