rdblue commented on a change in pull request #1955:
URL: https://github.com/apache/iceberg/pull/1955#discussion_r545985486
##########
File path: core/src/main/java/org/apache/iceberg/MetadataColumns.java
##########
@@ -55,4 +55,16 @@ private MetadataColumns() {
public static Set<Integer> metadataFieldIds() {
return META_IDS;
}
+
+ public static NestedField get(String name) {
+ return META_COLUMNS.get(name);
+ }
+
+ public static boolean isMetadataColumn(String name) {
+ return META_COLUMNS.containsKey(name);
+ }
+
+ public static boolean nonMetadataColumn(String name) {
Review comment:
Yeah, we could do that. I was following the slightly shorter Scala
convention, where there are methods like `nonEmpty`. I prefer this way, but if
others agree I'm happy to change it.
----------------------------------------------------------------
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]