@InterfaceAudience.Private public class NamespaceGroupingStrategy extends Object implements RegionGroupingProvider.RegionGroupingStrategy
Modifier and Type | Field and Description |
---|---|
(package private) String |
providerId |
GROUP_NAME_DELIMITER
Constructor and Description |
---|
NamespaceGroupingStrategy() |
Modifier and Type | Method and Description |
---|---|
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) |
String providerId
public NamespaceGroupingStrategy()
public String group(byte[] identifier, byte[] namespace)
RegionGroupingProvider.RegionGroupingStrategy
group
in interface RegionGroupingProvider.RegionGroupingStrategy
public void init(org.apache.hadoop.conf.Configuration config, String providerId)
init
in interface RegionGroupingProvider.RegionGroupingStrategy
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.