public abstract class Connector extends Object
Constructor and Description |
---|
Connector() |
Modifier and Type | Method and Description |
---|---|
abstract BatchDeleter |
createBatchDeleter(String tableName,
Authorizations authorizations,
int numQueryThreads,
BatchWriterConfig config) |
abstract BatchDeleter |
createBatchDeleter(String tableName,
Authorizations authorizations,
int numQueryThreads,
long maxMemory,
long maxLatency,
int maxWriteThreads)
Deprecated.
since 1.5.0; Use
createBatchDeleter(String, Authorizations, int, BatchWriterConfig) instead. |
abstract BatchScanner |
createBatchScanner(String tableName,
Authorizations authorizations,
int numQueryThreads)
Factory method to create a BatchScanner connected to Accumulo.
|
abstract BatchWriter |
createBatchWriter(String tableName,
BatchWriterConfig config)
Factory method to create a BatchWriter connected to Accumulo.
|
abstract BatchWriter |
createBatchWriter(String tableName,
long maxMemory,
long maxLatency,
int maxWriteThreads)
Deprecated.
since 1.5.0; Use
createBatchWriter(String, BatchWriterConfig) instead. |
abstract MultiTableBatchWriter |
createMultiTableBatchWriter(BatchWriterConfig config)
Factory method to create a Multi-Table BatchWriter connected to Accumulo.
|
abstract MultiTableBatchWriter |
createMultiTableBatchWriter(long maxMemory,
long maxLatency,
int maxWriteThreads)
Deprecated.
since 1.5.0; Use
createMultiTableBatchWriter(BatchWriterConfig) instead. |
abstract Scanner |
createScanner(String tableName,
Authorizations authorizations)
Factory method to create a Scanner connected to Accumulo.
|
abstract Instance |
getInstance()
Accessor method for internal instance object.
|
abstract InstanceOperations |
instanceOperations()
Retrieves an InstanceOperations object to modify instance configuration.
|
abstract SecurityOperations |
securityOperations()
Retrieves a SecurityOperations object to perform user security operations, such as creating users.
|
abstract TableOperations |
tableOperations()
Retrieves a TableOperations object to perform table functions, such as create and delete.
|
abstract String |
whoami()
Get the current user for this connector
|
public abstract BatchScanner createBatchScanner(String tableName, Authorizations authorizations, int numQueryThreads) throws TableNotFoundException
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 queryingTableNotFoundException
- when the specified table doesn't exist@Deprecated public abstract BatchDeleter createBatchDeleter(String tableName, Authorizations authorizations, int numQueryThreads, long maxMemory, long maxLatency, int maxWriteThreads) throws TableNotFoundException
createBatchDeleter(String, Authorizations, int, BatchWriterConfig)
instead.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 serversTableNotFoundException
- when the specified table doesn't existpublic abstract BatchDeleter createBatchDeleter(String tableName, Authorizations authorizations, int numQueryThreads, BatchWriterConfig config) throws TableNotFoundException
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 writerTableNotFoundException
@Deprecated public abstract BatchWriter createBatchWriter(String tableName, long maxMemory, long maxLatency, int maxWriteThreads) throws TableNotFoundException
createBatchWriter(String, BatchWriterConfig)
instead.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 serversTableNotFoundException
- when the specified table doesn't existpublic abstract BatchWriter createBatchWriter(String tableName, BatchWriterConfig config) throws TableNotFoundException
tableName
- the name of the table to insert data intoconfig
- configuration used to create batch writerTableNotFoundException
@Deprecated public abstract MultiTableBatchWriter createMultiTableBatchWriter(long maxMemory, long maxLatency, int maxWriteThreads)
createMultiTableBatchWriter(BatchWriterConfig)
instead.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 serverspublic abstract MultiTableBatchWriter createMultiTableBatchWriter(BatchWriterConfig config)
config
- configuration used to create multi-table batch writerpublic abstract Scanner createScanner(String tableName, Authorizations authorizations) throws TableNotFoundException
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.TableNotFoundException
- when the specified table doesn't existpublic abstract Instance getInstance()
public abstract String whoami()
public abstract TableOperations tableOperations()
public abstract SecurityOperations securityOperations()
public abstract InstanceOperations instanceOperations()
Copyright © 2011-2016 The Apache Software Foundation. All Rights Reserved.