Package org.apache.hadoop.hbase.client
Class TestRegionLocator
java.lang.Object
org.apache.hadoop.hbase.client.AbstractTestRegionLocator
org.apache.hadoop.hbase.client.TestRegionLocator
-
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.client.AbstractTestRegionLocator
FAMILY, REGION_REPLICATION, SPLIT_KEYS, TABLE_NAME, UTIL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclearCache(org.apache.hadoop.hbase.TableName tableName) protected List<org.apache.hadoop.hbase.HRegionLocation>getAllRegionLocations(org.apache.hadoop.hbase.TableName tableName) protected byte[][]getEndKeys(org.apache.hadoop.hbase.TableName tableName) protected org.apache.hadoop.hbase.HRegionLocationgetRegionLocation(org.apache.hadoop.hbase.TableName tableName, byte[] row, int replicaId) protected List<org.apache.hadoop.hbase.HRegionLocation>getRegionLocations(org.apache.hadoop.hbase.TableName tableName, byte[] row) protected org.apache.hadoop.hbase.util.Pair<byte[][],byte[][]> getStartEndKeys(org.apache.hadoop.hbase.TableName tableName) protected byte[][]getStartKeys(org.apache.hadoop.hbase.TableName tableName) static voidsetUp()static voidtearDown()Methods inherited from class org.apache.hadoop.hbase.client.AbstractTestRegionLocator
startClusterAndCreateTable, tearDownAfterTest, testGetAllRegionLocations, testGetRegionLocation, testGetRegionLocations, testMeta, testStartEndKeys
-
Field Details
-
CLASS_RULE
-
-
Constructor Details
-
TestRegionLocator
public TestRegionLocator()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
getStartKeys
- Specified by:
getStartKeysin classAbstractTestRegionLocator- Throws:
IOException
-
getEndKeys
- Specified by:
getEndKeysin classAbstractTestRegionLocator- Throws:
IOException
-
getStartEndKeys
protected org.apache.hadoop.hbase.util.Pair<byte[][],byte[][]> getStartEndKeys(org.apache.hadoop.hbase.TableName tableName) throws IOException - Specified by:
getStartEndKeysin classAbstractTestRegionLocator- Throws:
IOException
-
getRegionLocation
protected org.apache.hadoop.hbase.HRegionLocation getRegionLocation(org.apache.hadoop.hbase.TableName tableName, byte[] row, int replicaId) throws IOException - Specified by:
getRegionLocationin classAbstractTestRegionLocator- Throws:
IOException
-
getRegionLocations
protected List<org.apache.hadoop.hbase.HRegionLocation> getRegionLocations(org.apache.hadoop.hbase.TableName tableName, byte[] row) throws IOException - Specified by:
getRegionLocationsin classAbstractTestRegionLocator- Throws:
IOException
-
getAllRegionLocations
protected List<org.apache.hadoop.hbase.HRegionLocation> getAllRegionLocations(org.apache.hadoop.hbase.TableName tableName) throws IOException - Specified by:
getAllRegionLocationsin classAbstractTestRegionLocator- Throws:
IOException
-
clearCache
- Specified by:
clearCachein classAbstractTestRegionLocator- Throws:
IOException
-