aokolnychyi commented on a change in pull request #1338:
URL: https://github.com/apache/iceberg/pull/1338#discussion_r472288855



##########
File path: api/src/main/java/org/apache/iceberg/data/Record.java
##########
@@ -35,4 +36,26 @@
   Record copy();
 
   Record copy(Map<String, Object> overwriteValues);
+
+  default Record copy(String field, Object value) {
+    Map<String, Object> overwriteValues = Maps.newHashMapWithExpectedSize(1);
+    overwriteValues.put(field, value);
+    return copy(overwriteValues);
+  }
+
+  default Record copy(String field1, Object value1, String field2, Object 
value2) {
+    Map<String, Object> overwriteValues = Maps.newHashMapWithExpectedSize(1);
+    overwriteValues.put(field1, value1);
+    overwriteValues.put(field2, value2);
+    return copy(overwriteValues);
+  }
+
+  default Record copy(String field1, Object value1, String field2, Object 
value2, String field3, Object value3) {
+    Map<String, Object> overwriteValues = Maps.newHashMapWithExpectedSize(1);

Review comment:
       nit: same here




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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to