Package org.apache.hadoop.hbase.wal
Class BoundedGroupingStrategy
java.lang.Object
org.apache.hadoop.hbase.wal.BoundedGroupingStrategy
- All Implemented Interfaces:
RegionGroupingProvider.RegionGroupingStrategy
@Private
public class BoundedGroupingStrategy
extends Object
implements RegionGroupingProvider.RegionGroupingStrategy
A WAL grouping strategy that limits the number of wal groups to
"hbase.wal.regiongrouping.numgroups".
-
Field Summary
Modifier and TypeFieldDescriptionprivate AtomicInteger
(package private) static final int
private ConcurrentHashMap<String,
String> private String[]
(package private) static final String
Fields inherited from interface org.apache.hadoop.hbase.wal.RegionGroupingProvider.RegionGroupingStrategy
GROUP_NAME_DELIMITER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate int
getAndIncrAtomicInteger
(AtomicInteger atomicInt, int reset) group
(byte[] identifier, byte[] namespace) Given an identifier and a namespace, pick a group.void
-
Field Details
-
NUM_REGION_GROUPS
- See Also:
-
DEFAULT_NUM_REGION_GROUPS
- See Also:
-
groupNameCache
-
counter
-
groupNames
-
-
Constructor Details
-
BoundedGroupingStrategy
public BoundedGroupingStrategy()
-
-
Method Details
-
group
Description copied from interface:RegionGroupingProvider.RegionGroupingStrategy
Given an identifier and a namespace, pick a group.- Specified by:
group
in interfaceRegionGroupingProvider.RegionGroupingStrategy
-
getAndIncrAtomicInteger
-
init
- Specified by:
init
in interfaceRegionGroupingProvider.RegionGroupingStrategy
-