Package org.apache.accumulo.core.client
Class Accumulo
java.lang.Object
org.apache.accumulo.core.client.Accumulo
This class contains all API entry points created in 2.0.0 or later. The majority of the API is
accessible indirectly via methods in this class. Below are a list of APIs entry points that are
not accessible from here.
- Hadoop input, output formats and partitioners in
org.apache.accumulo.hadoop.mapred
andorg.apache.accumulo.hadoop.mapreduce
packages. org.apache.accumulo.minicluster.MiniAccumuloCluster
Not linkable by javadoc, because in a separate module.Lexicoder
and all of its implementations in the same package.RFile
- Since:
- 2.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionFluent entry point for creating anAccumuloClient
.Fluent entry point for creating clientProperties
.
-
Method Details
-
newClient
Fluent entry point for creating anAccumuloClient
. For example:// Create client directly from connection information try (AccumuloClient client = Accumulo.newClient() .to(instanceName, zookeepers) .as(user, password).build()) { // use the client } // Create client using the instance name, zookeeper, and credentials from java properties or properties file try (AccumuloClient client = Accumulo.newClient() .from(properties).build()) { // use the client }
- Returns:
- a builder object for Accumulo clients
-
newClientProperties
Fluent entry point for creating clientProperties
. For example:Properties clientProperties = Accumulo.newClientProperties() .to(instanceName, zookeepers) .as(user, password).build())
- Returns:
- a builder object for client Properties
-