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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Returns the protobuf represention of the modelReturns all namespacesgetObjectFromMessage
(byte[] message) Initialize the model from a protobuf representation.void
setNamespaces
(List<String> namespaces) toString()
-
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
-
createProtobufOutput
Description copied from interface:ProtobufMessageHandler
Returns the protobuf represention of the model- Specified by:
createProtobufOutput
in interfaceProtobufMessageHandler
-
getObjectFromMessage
Description copied from interface:ProtobufMessageHandler
Initialize the model from a protobuf representation.- Specified by:
getObjectFromMessage
in interfaceProtobufMessageHandler
- Parameters:
message
- the raw bytes of the protobuf message- Returns:
- reference to self for convenience
- Throws:
IOException
-