Package org.apache.hadoop.hbase
Class NamespaceDescriptor
java.lang.Object
org.apache.hadoop.hbase.NamespaceDescriptor
Namespace POJO class. Used to represent and define namespaces. Descriptors will be persisted in
an hbase table. This works since namespaces are essentially metadata of a group of tables as
opposed to a more tangible container.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final NamespaceDescriptor
static final byte[]
Default namespace name.static final String
private String
static final Comparator<NamespaceDescriptor>
static final Set<byte[]>
static final NamespaceDescriptor
static final byte[]
System namespace name.static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic NamespaceDescriptor.Builder
static NamespaceDescriptor.Builder
Getter for fetching an unmodifiableconfiguration
map.Getter for accessing the configuration value by keygetName()
void
Remove a config setting represented by the key from theconfiguration
mapvoid
setConfiguration
(String key, String value) Setter for storing a configuration setting inconfiguration
map.toString()
-
Field Details
-
SYSTEM_NAMESPACE_NAME
System namespace name. -
SYSTEM_NAMESPACE_NAME_STR
-
DEFAULT_NAMESPACE_NAME
Default namespace name. -
DEFAULT_NAMESPACE_NAME_STR
-
DEFAULT_NAMESPACE
-
SYSTEM_NAMESPACE
-
RESERVED_NAMESPACES
-
RESERVED_NAMESPACES_BYTES
-
name
-
configuration
-
NAMESPACE_DESCRIPTOR_COMPARATOR
-
-
Constructor Details
-
NamespaceDescriptor
private NamespaceDescriptor() -
NamespaceDescriptor
-
-
Method Details
-
getName
-
getConfigurationValue
Getter for accessing the configuration value by key -
getConfiguration
Getter for fetching an unmodifiableconfiguration
map. -
setConfiguration
Setter for storing a configuration setting inconfiguration
map.- Parameters:
key
- Config key. Same as XML config key e.g. hbase.something.or.other.value
- String value. If null, removes the setting.
-
removeConfiguration
Remove a config setting represented by the key from theconfiguration
map -
toString
-
create
-
create
-