@InterfaceAudience.Private public class AsyncLayeredConnectionImpl extends Object
| 构造器和说明 |
|---|
AsyncLayeredConnectionImpl(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.AsyncRegistry registry,
String clusterId,
User user) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAdmin, getAdmin, getBufferedMutator, getBufferedMutator, getTable, getTablepublic AsyncLayeredConnectionImpl(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.AsyncRegistry registry,
String clusterId,
User user)
public AsyncTableBuilder<AdvancedScanResultConsumer> getTableBuilder(TableName tableName)
AsyncConnectionAsyncTableBuilder 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.
getTableBuilder 在接口中 AsyncConnectiontableName - the name of the tablepublic AsyncTableBuilder<ScanResultConsumer> getTableBuilder(TableName tableName, ExecutorService pool)
AsyncConnectionAsyncTableBuilder 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.
getTableBuilder 在接口中 AsyncConnectiontableName - the name of the tablepool - the thread pool to use for executing callbackpublic org.apache.hadoop.conf.Configuration getConfiguration()
AsyncConnectionConfiguration object used by this instance.
The reference returned is not a copy, so any change made to it will affect this instance.
getConfiguration 在接口中 AsyncConnectionpublic void close()
close 在接口中 Closeableclose 在接口中 AutoCloseablepublic AsyncTableRegionLocator getRegionLocator(TableName tableName)
AsyncConnectiongetRegionLocator 在接口中 AsyncConnectiontableName - Name of the table who's region is to be examinedpublic NonceGenerator getNonceGenerator()
public AsyncAdminBuilder getAdminBuilder()
AsyncConnectionAsyncAdminBuilder 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.
getAdminBuilder 在接口中 AsyncConnectionpublic AsyncAdminBuilder getAdminBuilder(ExecutorService pool)
AsyncConnectionAsyncAdminBuilder for creating AsyncAdmin.getAdminBuilder 在接口中 AsyncConnectionpool - the thread pool to use for executing callbackpublic AsyncBufferedMutatorBuilder getBufferedMutatorBuilder(TableName tableName)
AsyncConnectionAsyncBufferedMutatorBuilder for creating AsyncBufferedMutator.getBufferedMutatorBuilder 在接口中 AsyncConnectiontableName - the name of the tablepublic AsyncBufferedMutatorBuilder getBufferedMutatorBuilder(TableName tableName, ExecutorService pool)
AsyncConnectionAsyncBufferedMutatorBuilder for creating AsyncBufferedMutator.getBufferedMutatorBuilder 在接口中 AsyncConnectiontableName - the name of the tablepool - the thread pool to use for executing callbackCopyright © 2007–2019. All rights reserved.