ajothomas commented on a change in pull request #1560:
URL: https://github.com/apache/samza/pull/1560#discussion_r758656719
##########
File path: samza-api/src/main/java/org/apache/samza/operators/MessageStream.java
##########
@@ -298,6 +298,25 @@
*/
<K, V> MessageStream<KV<K, V>> sendTo(Table<KV<K, V>> table, Object ...
args);
+ /**
+ * Allows sending messages in this {@link MessageStream} to a {@link Table}
and then propagates this
+ * {@link MessageStream} to the next chained operator. The type of input
message is expected to be {@link KV},
+ * otherwise a {@link ClassCastException} will be thrown. The value is an
update pair- update and an option default.
+ * <p>
+ * Note: The update will be written but may not be flushed to the underlying
table before its propagated to the
+ * chained operators. Whether the message can be read back from the Table in
the chained operator depends on whether
+ * it was flushed and whether the Table offers read after write consistency.
Messages retain the original partitioning
+ * scheme when propagated to next operator.
+ *
+ * @param table the table to write messages to
+ * @param args additional arguments passed to the table
+ * @param <K> the type of key in the table
+ * @param <V> the type of record value in the table
+ * @param <U> the type of update value for the table
+ * @return this {@link MessageStream}
+ */
+ <K, V, U> MessageStream<KV<K, UpdatePair<U, V>>> sendUpdateTo(Table<KV<K,
UpdatePair<U, V>>> table, Object ... args);
Review comment:
Done.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]