Package org.apache.hadoop.hbase.client
Class TestAsyncTableRegionLocator
java.lang.Object
org.apache.hadoop.hbase.client.AbstractTestRegionLocator
org.apache.hadoop.hbase.client.TestAsyncTableRegionLocator
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.hbase.client.AsyncConnection
Fields inherited from class org.apache.hadoop.hbase.client.AbstractTestRegionLocator
FAMILY, REGION_REPLICATION, SPLIT_KEYS, TABLE_NAME, UTIL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
clearCache
(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.HRegionLocation
getRegionLocation
(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 void
setUp()
static void
tearDown()
Methods inherited from class org.apache.hadoop.hbase.client.AbstractTestRegionLocator
startClusterAndCreateTable, tearDownAfterTest, testGetAllRegionLocations, testGetRegionLocation, testGetRegionLocations, testMeta, testStartEndKeys
-
Field Details
-
CLASS_RULE
-
CONN
-
-
Constructor Details
-
TestAsyncTableRegionLocator
public TestAsyncTableRegionLocator()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
getStartKeys
- Specified by:
getStartKeys
in classAbstractTestRegionLocator
- Throws:
IOException
-
getEndKeys
- Specified by:
getEndKeys
in classAbstractTestRegionLocator
- Throws:
IOException
-
getStartEndKeys
protected org.apache.hadoop.hbase.util.Pair<byte[][],byte[][]> getStartEndKeys(org.apache.hadoop.hbase.TableName tableName) throws IOException - Specified by:
getStartEndKeys
in 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:
getRegionLocation
in classAbstractTestRegionLocator
- Throws:
IOException
-
getRegionLocations
protected List<org.apache.hadoop.hbase.HRegionLocation> getRegionLocations(org.apache.hadoop.hbase.TableName tableName, byte[] row) throws IOException - Specified by:
getRegionLocations
in classAbstractTestRegionLocator
- Throws:
IOException
-
getAllRegionLocations
protected List<org.apache.hadoop.hbase.HRegionLocation> getAllRegionLocations(org.apache.hadoop.hbase.TableName tableName) throws IOException - Specified by:
getAllRegionLocations
in classAbstractTestRegionLocator
- Throws:
IOException
-
clearCache
- Specified by:
clearCache
in classAbstractTestRegionLocator
- Throws:
IOException
-