@InterfaceStability.Evolving @InterfaceAudience.Private public class RegionSizeCalculator extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static String |
ENABLE_REGIONSIZECALCULATOR |
private static org.apache.commons.logging.Log |
LOG |
private Map<byte[],Long> |
sizeMap
Maps each region to its size in bytes.
|
Constructor and Description |
---|
RegionSizeCalculator(HTable table)
Deprecated.
Use
RegionSizeCalculator(RegionLocator, Admin) instead. |
RegionSizeCalculator(RegionLocator regionLocator,
Admin admin)
Computes size of each region for table and given column families.
|
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
enabled(org.apache.hadoop.conf.Configuration configuration) |
long |
getRegionSize(byte[] regionId)
Returns size of given region in bytes.
|
Map<byte[],Long> |
getRegionSizeMap() |
private void |
init(RegionLocator regionLocator,
Admin admin) |
private static final org.apache.commons.logging.Log LOG
static final String ENABLE_REGIONSIZECALCULATOR
@Deprecated public RegionSizeCalculator(HTable table) throws IOException
RegionSizeCalculator(RegionLocator, Admin)
instead.IOException
public RegionSizeCalculator(RegionLocator regionLocator, Admin admin) throws IOException
IOException
private void init(RegionLocator regionLocator, Admin admin) throws IOException
IOException
boolean enabled(org.apache.hadoop.conf.Configuration configuration)
public long getRegionSize(byte[] regionId)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.