@InterfaceAudience.Private public class BoundedGroupingStrategy extends Object implements RegionGroupingProvider.RegionGroupingStrategy
| Modifier and Type | Field and Description | 
|---|---|
| private AtomicInteger | counter | 
| (package private) static int | DEFAULT_NUM_REGION_GROUPS | 
| private ConcurrentHashMap<String,String> | groupNameCache | 
| private String[] | groupNames | 
| (package private) static String | NUM_REGION_GROUPS | 
GROUP_NAME_DELIMITER| Constructor and Description | 
|---|
| BoundedGroupingStrategy() | 
| Modifier and Type | Method and Description | 
|---|---|
| private int | getAndIncrAtomicInteger(AtomicInteger atomicInt,
                       int reset) | 
| String | group(byte[] identifier,
     byte[] namespace)Given an identifier and a namespace, pick a group. | 
| void | init(org.apache.hadoop.conf.Configuration config,
    String providerId) | 
static final String NUM_REGION_GROUPS
static final int DEFAULT_NUM_REGION_GROUPS
private ConcurrentHashMap<String,String> groupNameCache
private AtomicInteger counter
private String[] groupNames
public BoundedGroupingStrategy()
public String group(byte[] identifier, byte[] namespace)
RegionGroupingProvider.RegionGroupingStrategygroup in interface RegionGroupingProvider.RegionGroupingStrategyprivate int getAndIncrAtomicInteger(AtomicInteger atomicInt, int reset)
public void init(org.apache.hadoop.conf.Configuration config, String providerId)
init in interface RegionGroupingProvider.RegionGroupingStrategyCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.