Class ConnectorImpl
- java.lang.Object
-
- org.apache.accumulo.core.client.Connector
-
- org.apache.accumulo.core.clientImpl.ConnectorImpl
-
@Deprecated(since="2.0.0") public class ConnectorImpl extends Connector
Deprecated.This class now delegates toClientContext
, except for the methods which were not copied over to that.
-
-
Constructor Summary
Constructors Constructor Description ConnectorImpl(ClientContext context)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BatchDeleter
createBatchDeleter(String tableName, Authorizations authorizations, int numQueryThreads, long maxMemory, long maxLatency, int maxWriteThreads)
Deprecated.Factory method to create a BatchDeleter connected to Accumulo.BatchDeleter
createBatchDeleter(String tableName, Authorizations authorizations, int numQueryThreads, BatchWriterConfig config)
Deprecated.Factory method to create BatchDeleterBatchScanner
createBatchScanner(String tableName, Authorizations authorizations, int numQueryThreads)
Deprecated.Factory method to create a BatchScanner connected to Accumulo.BatchWriter
createBatchWriter(String tableName, long maxMemory, long maxLatency, int maxWriteThreads)
Deprecated.Factory method to create a BatchWriter connected to Accumulo.BatchWriter
createBatchWriter(String tableName, BatchWriterConfig config)
Deprecated.Factory method to create a BatchWriter connected to Accumulo.ConditionalWriter
createConditionalWriter(String tableName, ConditionalWriterConfig config)
Deprecated.Factory method to create a ConditionalWriter connected to Accumulo.MultiTableBatchWriter
createMultiTableBatchWriter(long maxMemory, long maxLatency, int maxWriteThreads)
Deprecated.Factory method to create a Multi-Table BatchWriter connected to Accumulo.MultiTableBatchWriter
createMultiTableBatchWriter(BatchWriterConfig config)
Deprecated.Factory method to create a Multi-Table BatchWriter connected to Accumulo.Scanner
createScanner(String tableName, Authorizations authorizations)
Deprecated.Factory method to create a Scanner connected to Accumulo.ClientContext
getAccumuloClient()
Deprecated.Instance
getInstance()
Deprecated.Accessor method for internal instance object.InstanceOperations
instanceOperations()
Deprecated.Retrieves an InstanceOperations object to modify instance configuration.NamespaceOperations
namespaceOperations()
Deprecated.Retrieves a NamespaceOperations object to perform namespace functions, such as create and delete.ReplicationOperations
replicationOperations()
Deprecated.Retrieves a ReplicationOperations object to manage replication configuration.SecurityOperations
securityOperations()
Deprecated.Retrieves a SecurityOperations object to perform user security operations, such as creating users.TableOperations
tableOperations()
Deprecated.Retrieves a TableOperations object to perform table functions, such as create and delete.String
whoami()
Deprecated.Get the current user for this connector
-
-
-
Constructor Detail
-
ConnectorImpl
public ConnectorImpl(ClientContext context) throws AccumuloSecurityException, AccumuloException
Deprecated.
-
-
Method Detail
-
getAccumuloClient
public ClientContext getAccumuloClient()
Deprecated.
-
getInstance
public Instance getInstance()
Deprecated.Description copied from class:Connector
Accessor method for internal instance object.- Specified by:
getInstance
in classConnector
- Returns:
- the internal instance object
-
createBatchScanner
public BatchScanner createBatchScanner(String tableName, Authorizations authorizations, int numQueryThreads) throws TableNotFoundException
Deprecated.Description copied from class:Connector
Factory method to create a BatchScanner connected to Accumulo.- Specified by:
createBatchScanner
in classConnector
- Parameters:
tableName
- the name of the table to queryauthorizations
- A set of authorization labels that will be checked against the column visibility of each key in order to filter data. The authorizations passed in must be a subset of the accumulo user's set of authorizations. If the accumulo user has authorizations (A1, A2) and authorizations (A2, A3) are passed, then an exception will be thrown.numQueryThreads
- the number of concurrent threads to spawn for querying- Returns:
- BatchScanner object for configuring and querying
- Throws:
TableNotFoundException
- when the specified table doesn't exist
-
createBatchDeleter
public BatchDeleter createBatchDeleter(String tableName, Authorizations authorizations, int numQueryThreads, long maxMemory, long maxLatency, int maxWriteThreads) throws TableNotFoundException
Deprecated.Description copied from class:Connector
Factory method to create a BatchDeleter connected to Accumulo.- Specified by:
createBatchDeleter
in classConnector
- Parameters:
tableName
- the name of the table to query and delete fromauthorizations
- A set of authorization labels that will be checked against the column visibility of each key in order to filter data. The authorizations passed in must be a subset of the accumulo user's set of authorizations. If the accumulo user has authorizations (A1, A2) and authorizations (A2, A3) are passed, then an exception will be thrown.numQueryThreads
- the number of concurrent threads to spawn for queryingmaxMemory
- size in bytes of the maximum memory to batch before writingmaxLatency
- size in milliseconds; set to 0 or Long.MAX_VALUE to allow the maximum time to hold a batch before writingmaxWriteThreads
- the maximum number of threads to use for writing data to the tablet servers- Returns:
- BatchDeleter object for configuring and deleting
- Throws:
TableNotFoundException
- when the specified table doesn't exist
-
createBatchDeleter
public BatchDeleter createBatchDeleter(String tableName, Authorizations authorizations, int numQueryThreads, BatchWriterConfig config) throws TableNotFoundException
Deprecated.Description copied from class:Connector
Factory method to create BatchDeleter- Specified by:
createBatchDeleter
in classConnector
- Parameters:
tableName
- the name of the table to query and delete fromauthorizations
- A set of authorization labels that will be checked against the column visibility of each key in order to filter data. The authorizations passed in must be a subset of the accumulo user's set of authorizations. If the accumulo user has authorizations (A1, A2) and authorizations (A2, A3) are passed, then an exception will be thrown.numQueryThreads
- the number of concurrent threads to spawn for queryingconfig
- configuration used to create batch writer. This config takes precedence. Any unset values will be merged with config set when the Connector was created. If no config was set during Connector creation, BatchWriterConfig defaults will be used.- Returns:
- BatchDeleter object for configuring and deleting
- Throws:
TableNotFoundException
-
createBatchWriter
public BatchWriter createBatchWriter(String tableName, long maxMemory, long maxLatency, int maxWriteThreads) throws TableNotFoundException
Deprecated.Description copied from class:Connector
Factory method to create a BatchWriter connected to Accumulo.- Specified by:
createBatchWriter
in classConnector
- Parameters:
tableName
- the name of the table to insert data intomaxMemory
- size in bytes of the maximum memory to batch before writingmaxLatency
- time in milliseconds; set to 0 or Long.MAX_VALUE to allow the maximum time to hold a batch before writingmaxWriteThreads
- the maximum number of threads to use for writing data to the tablet servers- Returns:
- BatchWriter object for configuring and writing data to
- Throws:
TableNotFoundException
- when the specified table doesn't exist
-
createBatchWriter
public BatchWriter createBatchWriter(String tableName, BatchWriterConfig config) throws TableNotFoundException
Deprecated.Description copied from class:Connector
Factory method to create a BatchWriter connected to Accumulo.- Specified by:
createBatchWriter
in classConnector
- Parameters:
tableName
- the name of the table to insert data intoconfig
- configuration used to create batch writer. This config will take precedence. Any unset values will merged with config set when the Connector was created. If no config was set during Connector creation, BatchWriterConfig defaults will be used.- Returns:
- BatchWriter object for configuring and writing data to
- Throws:
TableNotFoundException
-
createMultiTableBatchWriter
public MultiTableBatchWriter createMultiTableBatchWriter(long maxMemory, long maxLatency, int maxWriteThreads)
Deprecated.Description copied from class:Connector
Factory method to create a Multi-Table BatchWriter connected to Accumulo. Multi-table batch writers can queue data for multiple tables, which is good for ingesting data into multiple tables from the same source- Specified by:
createMultiTableBatchWriter
in classConnector
- Parameters:
maxMemory
- size in bytes of the maximum memory to batch before writingmaxLatency
- size in milliseconds; set to 0 or Long.MAX_VALUE to allow the maximum time to hold a batch before writingmaxWriteThreads
- the maximum number of threads to use for writing data to the tablet servers- Returns:
- MultiTableBatchWriter object for configuring and writing data to
-
createMultiTableBatchWriter
public MultiTableBatchWriter createMultiTableBatchWriter(BatchWriterConfig config)
Deprecated.Description copied from class:Connector
Factory method to create a Multi-Table BatchWriter connected to Accumulo. Multi-table batch writers can queue data for multiple tables. Also data for multiple tables can be sent to a server in a single batch. Its an efficient way to ingest data into multiple tables from a single process.- Specified by:
createMultiTableBatchWriter
in classConnector
- Parameters:
config
- configuration used to create multi-table batch writer. This config will take precedence. Any unset values will merged with config set when the Connector was created. If no config was set during Connector creation, BatchWriterConfig defaults will be used.- Returns:
- MultiTableBatchWriter object for configuring and writing data to
-
createConditionalWriter
public ConditionalWriter createConditionalWriter(String tableName, ConditionalWriterConfig config) throws TableNotFoundException
Deprecated.Description copied from class:Connector
Factory method to create a ConditionalWriter connected to Accumulo.- Specified by:
createConditionalWriter
in classConnector
- Parameters:
tableName
- the name of the table to query data fromconfig
- configuration used to create conditional writer- Returns:
- ConditionalWriter object for writing ConditionalMutations
- Throws:
TableNotFoundException
- when the specified table doesn't exist
-
createScanner
public Scanner createScanner(String tableName, Authorizations authorizations) throws TableNotFoundException
Deprecated.Description copied from class:Connector
Factory method to create a Scanner connected to Accumulo.- Specified by:
createScanner
in classConnector
- Parameters:
tableName
- the name of the table to query data fromauthorizations
- A set of authorization labels that will be checked against the column visibility of each key in order to filter data. The authorizations passed in must be a subset of the accumulo user's set of authorizations. If the accumulo user has authorizations (A1, A2) and authorizations (A2, A3) are passed, then an exception will be thrown.- Returns:
- Scanner object for configuring and querying data with
- Throws:
TableNotFoundException
- when the specified table doesn't exist
-
whoami
public String whoami()
Deprecated.Description copied from class:Connector
Get the current user for this connector
-
tableOperations
public TableOperations tableOperations()
Deprecated.Description copied from class:Connector
Retrieves a TableOperations object to perform table functions, such as create and delete.- Specified by:
tableOperations
in classConnector
- Returns:
- an object to manipulate tables
-
namespaceOperations
public NamespaceOperations namespaceOperations()
Deprecated.Description copied from class:Connector
Retrieves a NamespaceOperations object to perform namespace functions, such as create and delete.- Specified by:
namespaceOperations
in classConnector
- Returns:
- an object to manipulate namespaces
-
securityOperations
public SecurityOperations securityOperations()
Deprecated.Description copied from class:Connector
Retrieves a SecurityOperations object to perform user security operations, such as creating users.- Specified by:
securityOperations
in classConnector
- Returns:
- an object to modify users and permissions
-
instanceOperations
public InstanceOperations instanceOperations()
Deprecated.Description copied from class:Connector
Retrieves an InstanceOperations object to modify instance configuration.- Specified by:
instanceOperations
in classConnector
- Returns:
- an object to modify instance configuration
-
replicationOperations
public ReplicationOperations replicationOperations()
Deprecated.Description copied from class:Connector
Retrieves a ReplicationOperations object to manage replication configuration.- Specified by:
replicationOperations
in classConnector
- Returns:
- an object to modify replication configuration
-
-