Class NamespacesInstanceModel
java.lang.Object
org.apache.hadoop.hbase.rest.model.NamespacesInstanceModel
- All Implemented Interfaces:
Serializable,ProtobufMessageHandler
@Private
public class NamespacesInstanceModel
extends Object
implements Serializable, ProtobufMessageHandler
List a HBase namespace's key/value properties.
- NamespaceProperties: outer element
- properties: sequence property elements
- entry
- key: property key
- value: property value
- See Also:
-
Field Summary
FieldsFields inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
BUFFER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.NamespacesInstanceModel(String namespaceName) Constructor to use if namespace does not exist in HBASE.NamespacesInstanceModel(Admin admin, String namespaceName) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String key, String value) Add property to the namespace.getObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) Returns The map of uncategorized namespace properties.org.apache.hbase.thirdparty.com.google.protobuf.MessageConvert to model to a protobuf Message objecttoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
createProtobufOutput, getObjectFromMessage, getObjectFromMessage, writeProtobufOutput
-
Field Details
-
serialVersionUID
- See Also:
-
properties
-
namespaceName
-
-
Constructor Details
-
NamespacesInstanceModel
public NamespacesInstanceModel()Default constructor. Do not use. -
NamespacesInstanceModel
Constructor to use if namespace does not exist in HBASE.- Parameters:
namespaceName- the namespace name.- Throws:
IOException
-
NamespacesInstanceModel
Constructor- Parameters:
admin- the administrative APInamespaceName- the namespace name.- Throws:
IOException
-
-
Method Details
-
addProperty
Add property to the namespace.- Parameters:
key- attribute namevalue- attribute value
-
getProperties
Returns The map of uncategorized namespace properties. -
getNamespaceName
-
toString
-
messageFromObject
Description copied from interface:ProtobufMessageHandlerConvert to model to a protobuf Message object- Specified by:
messageFromObjectin interfaceProtobufMessageHandler- Returns:
- the protobuf Message object
-
getObjectFromMessage
public ProtobufMessageHandler getObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) throws IOException - Specified by:
getObjectFromMessagein interfaceProtobufMessageHandler- Throws:
IOException
-