You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2018/11/29 17:58:25 UTC

[GitHub] mikewalch commented on issue #787: AccumuloClient.changeUser needs better documentation

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