@InterfaceAudience.Private public class SharedConnection extends Object implements Connection
| Constructor and Description |
|---|
SharedConnection(Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(String why,
Throwable e) |
void |
clearRegionLocationCache() |
void |
close() |
Admin |
getAdmin() |
BufferedMutator |
getBufferedMutator(BufferedMutatorParams params) |
BufferedMutator |
getBufferedMutator(TableName tableName) |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
Hbck |
getHbck() |
Hbck |
getHbck(ServerName masterServer) |
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 in interface Closeableclose in interface AutoCloseableclose in interface ConnectionIOExceptionpublic boolean isClosed()
isClosed in interface Connectionpublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface Connectionpublic BufferedMutator getBufferedMutator(TableName tableName) throws IOException
getBufferedMutator in interface ConnectionIOExceptionpublic BufferedMutator getBufferedMutator(BufferedMutatorParams params) throws IOException
getBufferedMutator in interface ConnectionIOExceptionpublic RegionLocator getRegionLocator(TableName tableName) throws IOException
getRegionLocator in interface ConnectionIOExceptionpublic Admin getAdmin() throws IOException
getAdmin in interface ConnectionIOExceptionpublic TableBuilder getTableBuilder(TableName tableName, ExecutorService pool)
getTableBuilder in interface Connectionpublic void clearRegionLocationCache()
clearRegionLocationCache in interface Connectionpublic Hbck getHbck() throws IOException
getHbck in interface ConnectionIOExceptionpublic Hbck getHbck(ServerName masterServer) throws IOException
getHbck in interface ConnectionIOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.