@InterfaceAudience.Private public class SharedConnection extends Object implements Connection
| 构造器和说明 |
|---|
SharedConnection(Connection conn) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
abort(String why,
Throwable e) |
void |
close() |
Admin |
getAdmin() |
BufferedMutator |
getBufferedMutator(BufferedMutatorParams params) |
BufferedMutator |
getBufferedMutator(TableName tableName) |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
RegionLocator |
getRegionLocator(TableName tableName) |
TableBuilder |
getTableBuilder(TableName tableName,
ExecutorService pool) |
boolean |
isAborted() |
boolean |
isClosed() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTable, getTablepublic SharedConnection(Connection conn)
public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在接口中 ConnectionIOExceptionpublic boolean isClosed()
isClosed 在接口中 Connectionpublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration 在接口中 Connectionpublic BufferedMutator getBufferedMutator(TableName tableName) throws IOException
getBufferedMutator 在接口中 ConnectionIOExceptionpublic BufferedMutator getBufferedMutator(BufferedMutatorParams params) throws IOException
getBufferedMutator 在接口中 ConnectionIOExceptionpublic RegionLocator getRegionLocator(TableName tableName) throws IOException
getRegionLocator 在接口中 ConnectionIOExceptionpublic Admin getAdmin() throws IOException
getAdmin 在接口中 ConnectionIOExceptionpublic TableBuilder getTableBuilder(TableName tableName, ExecutorService pool)
getTableBuilder 在接口中 ConnectionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.