rdblue commented on a change in pull request #85: Encryption APIs for Iceberg.
URL: https://github.com/apache/incubator-iceberg/pull/85#discussion_r253219903
 
 

 ##########
 File path: api/src/main/java/com/netflix/iceberg/DataFile.java
 ##########
 @@ -127,6 +129,12 @@ static StructType getType(StructType partitionType) {
    */
   Map<Integer, ByteBuffer> upperBounds();
 
+  /**
+   * @return metadata about how this file is encrypted, or null if the file is 
stored in plain
+   *         text.
+   */
+  EncryptionKeyMetadata keyMetadata();
 
 Review comment:
   I'm okay with wrapping this to pass to the EncryptionManager and related 
APIs, but I think DataFile should return the ByteBuffer as stored. That 
provides a clean API for plugins, but doesn't complicate the DataFile or make 
it appear that this is a struct/record when it is not. Does that work?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to