@InterfaceAudience.Private public class NamespacesInstanceModel extends Object implements Serializable, ProtobufMessageHandler
BUFFER_SIZE| Constructor and Description |
|---|
NamespacesInstanceModel()
Default constructor.
|
NamespacesInstanceModel(Admin admin,
String namespaceName)
Constructor
|
NamespacesInstanceModel(String namespaceName)
Constructor to use if namespace does not exist in HBASE.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(String key,
String value)
Add property to the namespace.
|
String |
getNamespaceName() |
ProtobufMessageHandler |
getObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) |
Map<String,String> |
getProperties()
Returns The map of uncategorized namespace properties.
|
org.apache.hbase.thirdparty.com.google.protobuf.Message |
messageFromObject()
Convert to model to a protobuf Message object
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateProtobufOutput, getObjectFromMessage, getObjectFromMessage, writeProtobufOutputpublic NamespacesInstanceModel()
public NamespacesInstanceModel(String namespaceName) throws IOException
namespaceName - the namespace name.IOExceptionpublic NamespacesInstanceModel(Admin admin, String namespaceName) throws IOException
admin - the administrative APInamespaceName - the namespace name.IOExceptionpublic void addProperty(String key, String value)
key - attribute namevalue - attribute valuepublic Map<String,String> getProperties()
public String getNamespaceName()
public org.apache.hbase.thirdparty.com.google.protobuf.Message messageFromObject()
ProtobufMessageHandlermessageFromObject in interface ProtobufMessageHandlerpublic ProtobufMessageHandler getObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) throws IOException
getObjectFromMessage in interface ProtobufMessageHandlerIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.