com.baidubce.services.tablestoragehbaseclient.hbase
Class TablestorageRegionLocator
java.lang.Object
com.baidubce.services.tablestoragehbaseclient.hbase.TablestorageRegionLocator
- All Implemented Interfaces:
- Closeable, org.apache.hadoop.hbase.client.RegionLocator
public class TablestorageRegionLocator
- extends Object
- implements org.apache.hadoop.hbase.client.RegionLocator
TablestorageRegionLocator derived from org.apache.hadoop.hbase.client.RegionLocator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TablestorageRegionLocator
public TablestorageRegionLocator(TablestorageConnection connection,
org.apache.hadoop.hbase.TableName tableName)
- Construct a TablestorageRegionLocator for the target instance.
- Parameters:
connection - The connection used to construct this TablestorageRegionLocator.tableName - The name of the target table.
getRegionLocation
public org.apache.hadoop.hbase.HRegionLocation getRegionLocation(byte[] row)
throws IOException
- Specified by:
getRegionLocation in interface org.apache.hadoop.hbase.client.RegionLocator
- Throws:
IOException
getRegionLocation
public org.apache.hadoop.hbase.HRegionLocation getRegionLocation(byte[] row,
boolean reload)
throws IOException
- Specified by:
getRegionLocation in interface org.apache.hadoop.hbase.client.RegionLocator
- Throws:
IOException
getAllRegionLocations
public List<org.apache.hadoop.hbase.HRegionLocation> getAllRegionLocations()
throws IOException
- Specified by:
getAllRegionLocations in interface org.apache.hadoop.hbase.client.RegionLocator
- Throws:
IOException
getStartKeys
public byte[][] getStartKeys()
throws IOException
- Specified by:
getStartKeys in interface org.apache.hadoop.hbase.client.RegionLocator
- Throws:
IOException
getEndKeys
public byte[][] getEndKeys()
throws IOException
- Specified by:
getEndKeys in interface org.apache.hadoop.hbase.client.RegionLocator
- Throws:
IOException
getStartEndKeys
public org.apache.hadoop.hbase.util.Pair<byte[][],byte[][]> getStartEndKeys()
throws IOException
- Specified by:
getStartEndKeys in interface org.apache.hadoop.hbase.client.RegionLocator
- Throws:
IOException
getName
public org.apache.hadoop.hbase.TableName getName()
- Specified by:
getName in interface org.apache.hadoop.hbase.client.RegionLocator
close
public void close()
throws IOException
- Specified by:
close in interface Closeable
- Throws:
IOException
Copyright © 2020. All rights reserved.