@InterfaceAudience.Private public class NamespacesInstanceModel extends java.lang.Object implements java.io.Serializable, ProtobufMessageHandler
| Constructor and Description |
|---|
NamespacesInstanceModel()
Default constructor.
|
NamespacesInstanceModel(Admin admin,
java.lang.String namespaceName)
Constructor
|
NamespacesInstanceModel(java.lang.String namespaceName)
Constructor to use if namespace does not exist in HBASE.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(java.lang.String key,
java.lang.String value)
Add property to the namespace.
|
byte[] |
createProtobufOutput() |
java.lang.String |
getNamespaceName() |
ProtobufMessageHandler |
getObjectFromMessage(byte[] message)
Initialize the model from a protobuf representation.
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
java.lang.String |
toString() |
public NamespacesInstanceModel()
public NamespacesInstanceModel(java.lang.String namespaceName)
throws java.io.IOException
namespaceName: - the namespace name.java.io.IOExceptionpublic NamespacesInstanceModel(Admin admin, java.lang.String namespaceName) throws java.io.IOException
admin: - the administrative APInamespaceName: - the namespace name.java.io.IOExceptionpublic void addProperty(java.lang.String key,
java.lang.String value)
key: - attribute namevalue - attribute valuepublic java.util.Map<java.lang.String,java.lang.String> getProperties()
public java.lang.String getNamespaceName()
public java.lang.String toString()
toString in class java.lang.Objectpublic byte[] createProtobufOutput()
createProtobufOutput in interface ProtobufMessageHandlerpublic ProtobufMessageHandler getObjectFromMessage(byte[] message) throws java.io.IOException
ProtobufMessageHandlergetObjectFromMessage in interface ProtobufMessageHandlermessage - the raw bytes of the protobuf messagejava.io.IOException