aromanenko-dev commented on a change in pull request #15862:
URL: https://github.com/apache/beam/pull/15862#discussion_r742146784



##########
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:
       Do we need this class and its methods be `public`?

##########
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:
       Keep it as `private`?

##########
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:
       Do we need this class and its methods be `public`?

##########
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:
       Keep it as `private`?




-- 
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]


Reply via email to