@InterfaceAudience.Private public class RegionSizeCalculator extends Object
| Modifier and Type | Field and Description | 
|---|---|
| (package private) static String | ENABLE_REGIONSIZECALCULATOR | 
| private static org.slf4j.Logger | LOG | 
| private static long | MEGABYTE | 
| private Map<byte[],Long> | sizeMapMaps each region to its size in bytes. | 
| Constructor and Description | 
|---|
| 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) | 
| private Set<ServerName> | getRegionServersOfTable(RegionLocator regionLocator) | 
| 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.slf4j.Logger LOG
static final String ENABLE_REGIONSIZECALCULATOR
private static final long MEGABYTE
public RegionSizeCalculator(RegionLocator regionLocator, Admin admin) throws IOException
IOExceptionprivate void init(RegionLocator regionLocator, Admin admin) throws IOException
IOExceptionprivate Set<ServerName> getRegionServersOfTable(RegionLocator regionLocator) throws IOException
IOExceptionboolean enabled(org.apache.hadoop.conf.Configuration configuration)
public long getRegionSize(byte[] regionId)
public Map<byte[],Long> getRegionSizeMap()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.