|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.NamespaceDescriptor
@InterfaceAudience.Public @InterfaceStability.Evolving public class 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 | |
---|---|
static class |
NamespaceDescriptor.Builder
|
Field Summary | |
---|---|
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
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Method Detail |
---|
public String getName()
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
map
public String toString()
toString
in class Object
public static NamespaceDescriptor.Builder create(String name)
public static NamespaceDescriptor.Builder create(NamespaceDescriptor ns)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |