public class TestRegionSizeUse extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private MiniHBaseCluster |
cluster |
private static String |
F1 |
private static org.slf4j.Logger |
LOG |
private static int |
NUM_SPLITS |
private static int |
SIZE_PER_VALUE |
private static HBaseTestingUtility |
TEST_UTIL |
org.junit.rules.TestName |
testName |
Constructor and Description |
---|
TestRegionSizeUse() |
Modifier and Type | Method and Description |
---|---|
private int |
numRegionsForTable(org.apache.hadoop.hbase.TableName tn,
Map<org.apache.hadoop.hbase.client.RegionInfo,Long> regions)
Computes the number of regions for the given table that have a positive size.
|
void |
setUp() |
void |
tearDown() |
void |
testBasicRegionSizeReports() |
private org.apache.hadoop.hbase.TableName |
writeData(long sizeInBytes)
Writes at least
sizeInBytes bytes of data to HBase and returns the TableName used. |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final int SIZE_PER_VALUE
private static final int NUM_SPLITS
private static final String F1
private static final HBaseTestingUtility TEST_UTIL
private MiniHBaseCluster cluster
public org.junit.rules.TestName testName
public TestRegionSizeUse()
public void testBasicRegionSizeReports() throws Exception
Exception
private org.apache.hadoop.hbase.TableName writeData(long sizeInBytes) throws IOException
sizeInBytes
bytes of data to HBase and returns the TableName used.sizeInBytes
- The amount of data to write in bytes.IOException
private int numRegionsForTable(org.apache.hadoop.hbase.TableName tn, Map<org.apache.hadoop.hbase.client.RegionInfo,Long> regions)
tn
- The TableName in questionregions
- A collection of region sizesCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.