You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2019/07/15 18:29:02 UTC

[GitHub] [hbase] apurtell commented on a change in pull request #352: HBASE-22622 - WALKey Extended Attributes

apurtell commented on a change in pull request #352: HBASE-22622 - WALKey Extended Attributes
URL: https://github.com/apache/hbase/pull/352#discussion_r303574089
 
 

 ##########
 File path: hbase-server/src/main/java/org/apache/hadoop/hbase/wal/WALKey.java
 ##########
 @@ -86,6 +86,21 @@ default long getNonce() {
    */
   long getOrigLogSeqNum();
 
+    /**
+     * Return a named String value injected into the WALKey during processing, such as by a
+     * coprocessor
+     * @param attributeKey The key of a key / value pair
+     */
+  default byte[] getExtendedAttribute(String attributeKey){
+    return null;
+  }
+
+    /**
+     * Returns a map of all extended attributes injected into this WAL key.
+     */
+  default Map<String, byte[]> getExtendedAttributes() {
 
 Review comment:
   Missing setters?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services