jackye1995 commented on a change in pull request #2074:
URL: https://github.com/apache/iceberg/pull/2074#discussion_r556296067



##########
File path: api/src/main/java/org/apache/iceberg/Accessors.java
##########
@@ -26,6 +26,21 @@
 import org.apache.iceberg.types.TypeUtil;
 import org.apache.iceberg.types.Types;
 
+
+/**
+ * Position2Accessor and Position3Accessor here is an optimization. For a 
nested schema like:
+ *
+ * root
+ *  |-- a: struct (nullable = false)
+ *  |    |-- b: struct (nullable = false)
+ *  |        | -- c: string (containsNull = false)
+ *
+ *  Then we will use Position3Accessor to access nested field 'c'. It can be 
accessed like this:
+ *  {@code row.get(p0, StructLike.class).get(p1, StructLike.class).get(p2, 
javaClass).

Review comment:
       `}` is missing in the end.




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