pabloem commented on a change in pull request #15862:
URL: https://github.com/apache/beam/pull/15862#discussion_r742228340
##########
File path:
sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/JdbcIO.java
##########
@@ -2122,4 +1912,242 @@ public void populateDisplayData(DisplayData.Builder
builder) {
config.populateDisplayData(builder);
}
}
+
+ /**
+ * {@link DoFn} class to write results data to a JDBC sink. It supports
writing rows one by one
+ * (and returning individual results) - or by batch.
+ *
+ * @param <T>
+ * @param <V>
+ */
+ static class WriteFn<T, V> extends DoFn<T, V> {
+
+ @AutoValue
+ public abstract static class WriteFnSpec<T, V> implements Serializable,
HasDisplayData {
Review comment:
I've made all of these not public. Thanks Alexey!
##########
File path:
sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/JdbcIO.java
##########
@@ -2122,4 +1912,242 @@ public void populateDisplayData(DisplayData.Builder
builder) {
config.populateDisplayData(builder);
}
}
+
+ /**
+ * {@link DoFn} class to write results data to a JDBC sink. It supports
writing rows one by one
+ * (and returning individual results) - or by batch.
+ *
+ * @param <T>
+ * @param <V>
+ */
+ static class WriteFn<T, V> extends DoFn<T, V> {
Review comment:
`AutoValue` requires that the enclosing class of the AutoValue class not
be private, so I couldn't make this class private. However this class will be
package private, so that should be pretty good right? : )
--
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]