public class HConnection1_0 extends Object implements ConnectionMask
| Constructor and Description |
|---|
HConnection1_0(org.apache.hadoop.hbase.client.Connection cnx) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
AdminMask |
getAdmin()
Retrieve the AdminMask compatibility layer object for this Connection.
|
List<org.apache.hadoop.hbase.HRegionLocation> |
getRegionLocations(String tableName)
Retrieve the RegionLocations for the supplied table name.
|
TableMask |
getTable(String name)
Retrieve the TableMask compatibility layer object for the supplied table name.
|
public HConnection1_0(org.apache.hadoop.hbase.client.Connection cnx)
public TableMask getTable(String name) throws IOException
ConnectionMaskgetTable in interface ConnectionMaskIOException - in the case of backend exceptions.public AdminMask getAdmin() throws IOException
ConnectionMaskgetAdmin in interface ConnectionMaskIOException - in the case of backend exceptions.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic List<org.apache.hadoop.hbase.HRegionLocation> getRegionLocations(String tableName) throws IOException
ConnectionMaskgetRegionLocations in interface ConnectionMaskIOException - in the case of backend exceptions.Copyright © 2012–2023. All rights reserved.