You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by GitBox <gi...@apache.org> on 2018/09/19 00:05:23 UTC
[GitHub] jerrypeng commented on a change in pull request #3029: Nwang/add
bolt based flatmap streamlet
jerrypeng commented on a change in pull request #3029: Nwang/add bolt based flatmap streamlet
URL: https://github.com/apache/incubator-heron/pull/3029#discussion_r218632604
##########
File path: heron/api/src/java/org/apache/heron/streamlet/Streamlet.java
##########
@@ -85,6 +86,13 @@
<T> Streamlet<T> flatMap(
SerializableFunction<R, ? extends Iterable<? extends T>> flatMapFn);
+ /**
+ * Return a new Streamlet by applying a bolt to each element of this Streamlet and
+ * flattening the result
+ * @param flatMapBolt The rich bolt that is used to emit tuples from each input element
+ */
+ <T> Streamlet<T> flatMap(IRichBolt flatMapBolt);
Review comment:
Ya I don't know if we should mix the two APIs. Kind of breaks the abstraction.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services