piotr-szuberski commented on a change in pull request #12611:
URL: https://github.com/apache/beam/pull/12611#discussion_r505693055
##########
File path:
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/MutationUtils.java
##########
@@ -34,4 +49,237 @@ public static boolean isPointDelete(Mutation m) {
&& Iterables.isEmpty(m.getKeySet().getRanges())
&& Iterables.size(m.getKeySet().getKeys()) == 1;
}
+
+ /**
+ * Utility function to convert row to mutation.
+ *
+ * @return function that can convert row to mutation
+ */
+ public static SerializableFunction<Row, Mutation> beamRowToMutationFn() {
Review comment:
Done. I hope it's not too brief.
----------------------------------------------------------------
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]