@InterfaceAudience.Public public interface AsyncConnection extends Closeable
Modifier and Type | Method and Description |
---|---|
AsyncAdmin |
getAdmin()
Retrieve an AsyncAdmin implementation to administer an HBase cluster.
|
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 callbackAsyncAdmin getAdmin()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.