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 2019/10/31 18:32:47 UTC

[GitHub] [accumulo] keith-turner commented on a change in pull request #1404: Add example of client to javadoc

keith-turner commented on a change in pull request #1404: Add example of client to javadoc
URL: https://github.com/apache/accumulo/pull/1404#discussion_r341302158
 
 

 ##########
 File path: core/src/main/java/org/apache/accumulo/core/client/Accumulo.java
 ##########
 @@ -51,11 +51,18 @@ private Accumulo() {}
    *
    * <pre>
    * <code>
+   * // Create client directly from connection information
    * try (AccumuloClient client = Accumulo.newClient()
    *        .to(instanceName, zookeepers)
    *        .as(user, password).build())
    * {
-   *   // use the client
+   *    // use the client
+   * }
+   * // Create client from java properties or properties file
+   * try (AccumuloClient client = Accumulo.newClient()
+   *        .from(properties).build())
+   * {
+   *    // connect as the user configured in properties
 
 Review comment:
   ```suggestion
      *    // use the client
   ```

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