public class TestRegionLocator extends AbstractTestRegionLocator
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
FAMILY, REGION_REPLICATION, SPLIT_KEYS, TABLE_NAME, UTIL
Constructor and Description |
---|
TestRegionLocator() |
Modifier and Type | Method and Description |
---|---|
protected 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() |
startClusterAndCreateTable, tearDownAfterTest, testGetAllRegionLocations, testGetRegionLocation, testGetRegionLocations, testMeta, testStartEndKeys
public static final HBaseClassTestRule CLASS_RULE
public TestRegionLocator()
protected byte[][] getStartKeys(org.apache.hadoop.hbase.TableName tableName) throws IOException
getStartKeys
in class AbstractTestRegionLocator
IOException
protected byte[][] getEndKeys(org.apache.hadoop.hbase.TableName tableName) throws IOException
getEndKeys
in class AbstractTestRegionLocator
IOException
protected org.apache.hadoop.hbase.util.Pair<byte[][],byte[][]> getStartEndKeys(org.apache.hadoop.hbase.TableName tableName) throws IOException
getStartEndKeys
in class AbstractTestRegionLocator
IOException
protected org.apache.hadoop.hbase.HRegionLocation getRegionLocation(org.apache.hadoop.hbase.TableName tableName, byte[] row, int replicaId) throws IOException
getRegionLocation
in class AbstractTestRegionLocator
IOException
protected List<org.apache.hadoop.hbase.HRegionLocation> getRegionLocations(org.apache.hadoop.hbase.TableName tableName, byte[] row) throws IOException
getRegionLocations
in class AbstractTestRegionLocator
IOException
protected List<org.apache.hadoop.hbase.HRegionLocation> getAllRegionLocations(org.apache.hadoop.hbase.TableName tableName) throws IOException
getAllRegionLocations
in class AbstractTestRegionLocator
IOException
protected void clearCache(org.apache.hadoop.hbase.TableName tableName) throws IOException
clearCache
in class AbstractTestRegionLocator
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.