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_r232371135
##########
File path:
heron/api/src/java/org/apache/heron/streamlet/impl/StreamletImpl.java
##########
@@ -505,4 +506,17 @@ public void toSink(Sink<R> sink) {
return customStreamlet;
}
+ /**
+ * 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
+ */
+ @Override
+ public <T> Streamlet<T> applyOperator(IStreamletOperator<R, T> operator,
StreamGrouper grouper) {
Review comment:
`null` checks can be useful for `operator` and `grouper` parameters due to
public API
----------------------------------------------------------------
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