eab148 opened a new pull request, #6076:
URL: https://github.com/apache/hbase/pull/6076

   As of https://github.com/apache/hbase/pull/5326, we have been able to set 
request attributes on Table instances. In this PR, we extend the feature to 
BufferedMutators. 
   
   One can set a request attribute on a BufferedMutator via a new method 
`BufferedMutatorParams::setRequestAttribute`. The full flow of setting a 
request attribute might look something like
   
   ```
   Map<String, byte[]> REQUEST_ATTRIBUTES = Map.of(...);
   ...
   BufferedMutatorParams params = 
       new BufferedMutatorParams(REQUEST_ATTRIBUTES_TEST_TABLE);
   REQUEST_ATTRIBUTES.forEach(params::setRequestAttribute);
   BufferedMutator bufferedMutator = conn.getBufferedMutator(params);
   // all calls generated via this buffered mutator will include the given 
attributes
   ```
   
   cc @bbeaudreault @hgromer @bozzkar @rmdmattingly


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to