com.baidubce.services.tablestoragehbaseclient.hbase
Class TablestorageConnection
java.lang.Object
com.baidubce.services.tablestoragehbaseclient.hbase.TablestorageConnection
- All Implemented Interfaces:
- Closeable, org.apache.hadoop.hbase.Abortable, org.apache.hadoop.hbase.client.Connection
public class TablestorageConnection
- extends Object
- implements org.apache.hadoop.hbase.client.Connection
TableStorageConnection derived from hbase.client.Connection
A connection encapsulating the corresponding configure to TableStorage.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TablestorageConnection
public TablestorageConnection(org.apache.hadoop.conf.Configuration conf)
throws IOException
- Construct a connection to TableStorage with configuration.
- Parameters:
conf - the configuration used to connect TableStorage.
- Throws:
IOException
TablestorageConnection
public TablestorageConnection(org.apache.hadoop.conf.Configuration conf,
boolean managed,
ExecutorService pool,
org.apache.hadoop.hbase.security.User user)
getTablestorageConfiguration
public TablestorageConfiguration getTablestorageConfiguration()
getConfiguration
public org.apache.hadoop.conf.Configuration getConfiguration()
- Specified by:
getConfiguration in interface org.apache.hadoop.hbase.client.Connection
getTable
public org.apache.hadoop.hbase.client.Table getTable(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
getTable in interface org.apache.hadoop.hbase.client.Connection
- Throws:
IOException
getTable
public org.apache.hadoop.hbase.client.Table getTable(org.apache.hadoop.hbase.TableName tableName,
ExecutorService pool)
throws IOException
- Specified by:
getTable in interface org.apache.hadoop.hbase.client.Connection
- Throws:
IOException
getBufferedMutator
public org.apache.hadoop.hbase.client.BufferedMutator getBufferedMutator(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
getBufferedMutator in interface org.apache.hadoop.hbase.client.Connection
- Throws:
IOException
getBufferedMutator
public org.apache.hadoop.hbase.client.BufferedMutator getBufferedMutator(org.apache.hadoop.hbase.client.BufferedMutatorParams params)
throws IOException
- Specified by:
getBufferedMutator in interface org.apache.hadoop.hbase.client.Connection
- Throws:
IOException
getRegionLocator
public org.apache.hadoop.hbase.client.RegionLocator getRegionLocator(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
getRegionLocator in interface org.apache.hadoop.hbase.client.Connection
- Throws:
IOException
getAdmin
public org.apache.hadoop.hbase.client.Admin getAdmin()
throws IOException
- Specified by:
getAdmin in interface org.apache.hadoop.hbase.client.Connection
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Specified by:
close in interface org.apache.hadoop.hbase.client.Connection
- Throws:
IOException
isClosed
public boolean isClosed()
- Specified by:
isClosed in interface org.apache.hadoop.hbase.client.Connection
abort
public void abort(String why,
Throwable e)
- Specified by:
abort in interface org.apache.hadoop.hbase.Abortable
isAborted
public boolean isAborted()
- Specified by:
isAborted in interface org.apache.hadoop.hbase.Abortable
Copyright © 2020. All rights reserved.