Class NamespacesModel
java.lang.Object
org.apache.hadoop.hbase.rest.model.NamespacesModel
- All Implemented Interfaces:
Serializable
,ProtobufMessageHandler
@Private
public class NamespacesModel
extends Object
implements Serializable, ProtobufMessageHandler
A list of HBase namespaces.
- Namespace: namespace name
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final long
Fields inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
BUFFER_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns all namespacesgetObjectFromMessage
(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) org.apache.hbase.thirdparty.com.google.protobuf.Message
Convert to model to a protobuf Message objectvoid
setNamespaces
(List<String> namespaces) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
createProtobufOutput, getObjectFromMessage, getObjectFromMessage, writeProtobufOutput
-
Field Details
-
serialVersionUID
- See Also:
-
namespaces
-
-
Constructor Details
-
NamespacesModel
public NamespacesModel()Default constructor. Do not use. -
NamespacesModel
Constructor- Parameters:
admin
- the administrative API- Throws:
IOException
-
-
Method Details
-
getNamespaces
Returns all namespaces -
setNamespaces
- Parameters:
namespaces
- the namespace name array
-
toString
-
messageFromObject
Description copied from interface:ProtobufMessageHandler
Convert to model to a protobuf Message object- Specified by:
messageFromObject
in interfaceProtobufMessageHandler
- Returns:
- the protobuf Message object
-
getObjectFromMessage
public ProtobufMessageHandler getObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) throws IOException - Specified by:
getObjectFromMessage
in interfaceProtobufMessageHandler
- Throws:
IOException
-