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
FieldsModifier and TypeFieldDescriptionprivate AtomicInteger(package private) static final intprivate ConcurrentHashMap<String,String> private String[](package private) static final StringFields inherited from interface org.apache.hadoop.hbase.wal.RegionGroupingProvider.RegionGroupingStrategy
GROUP_NAME_DELIMITER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intgetAndIncrAtomicInteger(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.RegionGroupingStrategyGiven an identifier and a namespace, pick a group.- Specified by:
groupin interfaceRegionGroupingProvider.RegionGroupingStrategy
-
getAndIncrAtomicInteger
-
init
- Specified by:
initin interfaceRegionGroupingProvider.RegionGroupingStrategy
-