@InterfaceAudience.Public public interface AsyncConnection extends Closeable
Modifier and Type | Method and Description |
---|---|
default AsyncAdmin |
getAdmin()
Retrieve an
AsyncAdmin implementation to administer an HBase cluster. |
default AsyncAdmin |
getAdmin(ExecutorService pool)
Retrieve an
AsyncAdmin implementation to administer an HBase cluster. |
AsyncAdminBuilder<RawAsyncHBaseAdmin> |
getAdminBuilder()
Returns an
AsyncAdminBuilder for creating AsyncAdmin . |
AsyncAdminBuilder<AsyncHBaseAdmin> |
getAdminBuilder(ExecutorService pool)
Returns an
AsyncAdminBuilder for creating AsyncAdmin . |
org.apache.hadoop.conf.Configuration |
getConfiguration()
Returns the
Configuration object used by this instance. |
default RawAsyncTable |
getRawTable(TableName tableName)
Retrieve an
RawAsyncTable implementation for accessing a table. |
AsyncTableBuilder<RawAsyncTable> |
getRawTableBuilder(TableName tableName)
Returns an
AsyncTableBuilder for creating RawAsyncTable . |
AsyncTableRegionLocator |
getRegionLocator(TableName tableName)
Retrieve a AsyncRegionLocator implementation to inspect region information on a table.
|
default AsyncTable |
getTable(TableName tableName,
ExecutorService pool)
Retrieve an AsyncTable implementation for accessing a table.
|
AsyncTableBuilder<AsyncTable> |
getTableBuilder(TableName tableName,
ExecutorService pool)
Returns an
AsyncTableBuilder for creating AsyncTable . |
org.apache.hadoop.conf.Configuration getConfiguration()
Configuration
object used by this instance.
The reference returned is not a copy, so any change made to it will affect this instance.
AsyncTableRegionLocator getRegionLocator(TableName tableName)
tableName
- Name of the table who's region is to be examineddefault RawAsyncTable getRawTable(TableName tableName)
RawAsyncTable
implementation for accessing a table.
The returned instance will use default configs. Use getRawTableBuilder(TableName)
if you
want to customize some configs.
This method no longer checks table existence. An exception will be thrown if the table does not exist only when the first operation is attempted.
tableName
- the name of the tablegetRawTableBuilder(TableName)
AsyncTableBuilder<RawAsyncTable> getRawTableBuilder(TableName tableName)
AsyncTableBuilder
for creating RawAsyncTable
.
This method no longer checks table existence. An exception will be thrown if the table does not exist only when the first operation is attempted.
tableName
- the name of the tabledefault AsyncTable getTable(TableName tableName, ExecutorService pool)
This method no longer checks table existence. An exception will be thrown if the table does not exist only when the first operation is attempted.
tableName
- the name of the tablepool
- the thread pool to use for executing callbackAsyncTableBuilder<AsyncTable> getTableBuilder(TableName tableName, ExecutorService pool)
AsyncTableBuilder
for creating AsyncTable
.
This method no longer checks table existence. An exception will be thrown if the table does not exist only when the first operation is attempted.
tableName
- the name of the tablepool
- the thread pool to use for executing callbackdefault AsyncAdmin getAdmin()
AsyncAdmin
implementation to administer an HBase cluster.
The returned instance will use default configs. Use getAdminBuilder()
if you want to
customize some configs.
The admin operation's returned CompletableFuture
will be finished directly in the rpc
framework's callback thread, so typically you should not do any time consuming work inside
these methods.
AsyncAdmin
instance for cluster administrationAsyncAdminBuilder<RawAsyncHBaseAdmin> getAdminBuilder()
AsyncAdminBuilder
for creating AsyncAdmin
.
The admin operation's returned CompletableFuture
will be finished directly in the rpc
framework's callback thread, so typically you should not do any time consuming work inside
these methods.
default AsyncAdmin getAdmin(ExecutorService pool)
AsyncAdmin
implementation to administer an HBase cluster.
The returned instance will use default configs. Use getAdminBuilder(ExecutorService)
if you want to customize some configs.
pool
- the thread pool to use for executing callbackAsyncAdmin
instance for cluster administrationAsyncAdminBuilder<AsyncHBaseAdmin> getAdminBuilder(ExecutorService pool)
AsyncAdminBuilder
for creating AsyncAdmin
.pool
- the thread pool to use for executing callbackCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.