KhaninArtur commented on a change in pull request #14856:
URL: https://github.com/apache/beam/pull/14856#discussion_r643817976
##########
File path:
sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/JdbcIO.java
##########
@@ -1070,15 +1070,32 @@ public static RetryConfiguration create(
*
* <pre>{@code
* PCollection<Void> firstWriteResults = data.apply(JdbcIO.write()
- * .withDataSourceConfiguration(CONF_DB_1).withResults());
+ * .withDataSourceConfiguration(CONF_DB_1).withVoidResults());
* data.apply(Wait.on(firstWriteResults))
* .apply(JdbcIO.write().withDataSourceConfiguration(CONF_DB_2));
* }</pre>
*/
- public WriteVoid<T> withResults() {
+ public WriteVoid<T> withVoidResults() {
return inner;
}
+ /**
+ * Returns {@link WriteWithResults} transform that could return a specific
result.
+ *
+ * <p>See {@link WriteWithResults}
+ */
+ public <V> WriteWithResults<T, V> withReturningResults(RowMapper<V>
rowMapper) {
Review comment:
How about renaming it the following way?
- `withVoidResults` -> `withoutResults`
- `withReturningResults` -> `withResults`
I suppose this way should be more concise, what do you think?
--
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:
[email protected]