accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] mikewalch commented on issue #787: AccumuloClient.changeUser needs better documentation
Date Thu, 29 Nov 2018 17:58:25 GMT
mikewalch commented on issue #787: AccumuloClient.changeUser needs better documentation
URL: https://github.com/apache/accumulo/issues/787#issuecomment-442931818
 
 
   I am cool with removing the method. Users can still create a new client for a new user
from an existing client using the following code:
   
   ```
   AccumuloClient client = Accumulo.newClient().from(oldClient.info()).as(principal, token).build();
   
   ```
   
   The above code is more clear than the following that we are creating a new client:
   
   ```java
   AccumuloClient client = oldClient.changeUser(principal, token);
   

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


With regards,
Apache Git Services

Mime
View raw message