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
FieldsModifier and TypeFieldDescriptionprivate static final longFields inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
BUFFER_SIZE - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionReturns all namespacesgetObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) org.apache.hbase.thirdparty.com.google.protobuf.MessageConvert to model to a protobuf Message objectvoidsetNamespaces(List<String> namespaces) toString()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:
 
 - 
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: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
 
 -