erenavsarogullari commented on a change in pull request #3099: Nwang/add
streamlet operator interfaces with grouping v2
URL: https://github.com/apache/incubator-heron/pull/3099#discussion_r232497765
##########
File path: heron/api/src/java/org/apache/heron/streamlet/Streamlet.java
##########
@@ -209,6 +209,15 @@
*/
<T> Streamlet<T> applyOperator(IStreamletOperator<R, T> operator);
+ /**
+ * Returns a new Streamlet by applying the operator on each element of this
streamlet.
+ * @param operator The operator to be applied
+ * @param grouper The grouper to be applied with the operator
+ * @param <T> The return type of the transform
+ * @return Streamlet containing the output of the operation
+ */
+ <T> Streamlet<T> applyOperator(IStreamletOperator<R, T> operator,
StreamGrouper grouper);
Review comment:
Do we plan to support other `Streamlet` operators for user defined grouping
(as same with `applyOperator`)?
Also, an alternative way for passing grouping as function parameter, is it
applicable to accept grouping at `Streamlet` level? (**e.g:** same level with
`setName`, `setNumPartitions` etc)
----------------------------------------------------------------
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