keith-turner commented on a change in pull request #744: Fixes #533 - Add scan 
authorization to Accumulo clients
URL: https://github.com/apache/accumulo/pull/744#discussion_r230433646
 
 

 ##########
 File path: 
core/src/main/java/org/apache/accumulo/core/client/AccumuloClient.java
 ##########
 @@ -99,6 +99,20 @@ BatchScanner createBatchScanner(String tableName, 
Authorizations authorizations,
   BatchScanner createBatchScanner(String tableName, Authorizations 
authorizations)
       throws TableNotFoundException;
 
+  /**
+   * Factory method to create a BatchScanner with all of user's authorizations 
and the number of
+   * query threads configured when AccumuloClient was created. If no query 
threads were configured,
+   * defaults will be used.
+   *
+   * @param tableName
+   *          the name of the table to query
+   *
+   * @return BatchScanner object for configuring and querying
+   * @throws TableNotFoundException
+   *           when the specified table doesn't exist
+   */
+  BatchScanner createBatchScanner(String tableName) throws 
TableNotFoundException, AccumuloSecurityException, AccumuloException;
 
 Review comment:
   Instead of creating this new method could add javadoc to the existing method 
linking to `securityOperations().getUserAuthorizations()`

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

Reply via email to