public class TablestorageRegionLocator extends Object implements org.apache.hadoop.hbase.client.RegionLocator
| Constructor and Description |
|---|
TablestorageRegionLocator(TablestorageConnection connection,
org.apache.hadoop.hbase.TableName tableName)
Construct a TablestorageRegionLocator for the target instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<org.apache.hadoop.hbase.HRegionLocation> |
getAllRegionLocations() |
byte[][] |
getEndKeys() |
org.apache.hadoop.hbase.TableName |
getName() |
org.apache.hadoop.hbase.HRegionLocation |
getRegionLocation(byte[] row) |
org.apache.hadoop.hbase.HRegionLocation |
getRegionLocation(byte[] row,
boolean reload) |
org.apache.hadoop.hbase.util.Pair<byte[][],byte[][]> |
getStartEndKeys() |
byte[][] |
getStartKeys() |
public TablestorageRegionLocator(TablestorageConnection connection, org.apache.hadoop.hbase.TableName tableName)
connection - The connection used to construct this TablestorageRegionLocator.tableName - The name of the target table.public org.apache.hadoop.hbase.HRegionLocation getRegionLocation(byte[] row)
throws IOException
getRegionLocation in interface org.apache.hadoop.hbase.client.RegionLocatorIOExceptionpublic org.apache.hadoop.hbase.HRegionLocation getRegionLocation(byte[] row,
boolean reload)
throws IOException
getRegionLocation in interface org.apache.hadoop.hbase.client.RegionLocatorIOExceptionpublic List<org.apache.hadoop.hbase.HRegionLocation> getAllRegionLocations() throws IOException
getAllRegionLocations in interface org.apache.hadoop.hbase.client.RegionLocatorIOExceptionpublic byte[][] getStartKeys()
throws IOException
getStartKeys in interface org.apache.hadoop.hbase.client.RegionLocatorIOExceptionpublic byte[][] getEndKeys()
throws IOException
getEndKeys in interface org.apache.hadoop.hbase.client.RegionLocatorIOExceptionpublic org.apache.hadoop.hbase.util.Pair<byte[][],byte[][]> getStartEndKeys()
throws IOException
getStartEndKeys in interface org.apache.hadoop.hbase.client.RegionLocatorIOExceptionpublic org.apache.hadoop.hbase.TableName getName()
getName in interface org.apache.hadoop.hbase.client.RegionLocatorpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2021. All rights reserved.