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

 ##########
 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:
   In this case and elsewhere I like specifically denoting what the meaning of 
the returned byte buffer is. This allows code that uses the encryption managers 
to pass the returned key metadata directly into the key manager methods without 
wrapping it in `EncryptionKeyMetadata` first.

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