@InterfaceAudience.Public @InterfaceStability.Evolving public class NamespaceDescriptor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NamespaceDescriptor.Builder |
Modifier and Type | Field and Description |
---|---|
static NamespaceDescriptor |
DEFAULT_NAMESPACE |
static byte[] |
DEFAULT_NAMESPACE_NAME
Default namespace name.
|
static String |
DEFAULT_NAMESPACE_NAME_STR |
static Comparator<NamespaceDescriptor> |
NAMESPACE_DESCRIPTOR_COMPARATOR |
static Set<String> |
RESERVED_NAMESPACES |
static Set<byte[]> |
RESERVED_NAMESPACES_BYTES |
static NamespaceDescriptor |
SYSTEM_NAMESPACE |
static byte[] |
SYSTEM_NAMESPACE_NAME
System namespace name.
|
static String |
SYSTEM_NAMESPACE_NAME_STR |
Modifier and Type | Method and Description |
---|---|
static NamespaceDescriptor.Builder |
create(NamespaceDescriptor ns) |
static NamespaceDescriptor.Builder |
create(String name) |
Map<String,String> |
getConfiguration()
Getter for fetching an unmodifiable
configuration map. |
String |
getConfigurationValue(String key)
Getter for accessing the configuration value by key
|
String |
getName() |
void |
removeConfiguration(String key)
Remove a config setting represented by the key from the
configuration map |
void |
setConfiguration(String key,
String value)
Setter for storing a configuration setting in
configuration map. |
String |
toString() |
public static final byte[] SYSTEM_NAMESPACE_NAME
public static final String SYSTEM_NAMESPACE_NAME_STR
public static final byte[] DEFAULT_NAMESPACE_NAME
public static final String DEFAULT_NAMESPACE_NAME_STR
public static final NamespaceDescriptor DEFAULT_NAMESPACE
public static final NamespaceDescriptor SYSTEM_NAMESPACE
public static final Set<String> RESERVED_NAMESPACES
public static final Set<byte[]> RESERVED_NAMESPACES_BYTES
public static final Comparator<NamespaceDescriptor> NAMESPACE_DESCRIPTOR_COMPARATOR
public String getConfigurationValue(String key)
public Map<String,String> getConfiguration()
configuration
map.public void setConfiguration(String key, String value)
configuration
map.key
- Config key. Same as XML config key e.g. hbase.something.or.other.value
- String value. If null, removes the setting.public void removeConfiguration(String key)
configuration
mappublic static NamespaceDescriptor.Builder create(String name)
public static NamespaceDescriptor.Builder create(NamespaceDescriptor ns)
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.