@InterfaceAudience.Private public class NamespacesModel extends Object implements Serializable, ProtobufMessageHandler
| Constructor and Description |
|---|
NamespacesModel()
Default constructor.
|
NamespacesModel(org.apache.hadoop.hbase.client.Admin admin)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
createProtobufOutput() |
List<String> |
getNamespaces() |
ProtobufMessageHandler |
getObjectFromMessage(byte[] message)
Initialize the model from a protobuf representation.
|
void |
setNamespaces(List<String> namespaces) |
String |
toString() |
public NamespacesModel()
public NamespacesModel(org.apache.hadoop.hbase.client.Admin admin)
throws IOException
admin - the administrative APIIOExceptionpublic void setNamespaces(List<String> namespaces)
namespaces - the namespace name arraypublic byte[] createProtobufOutput()
createProtobufOutput in interface ProtobufMessageHandlerpublic ProtobufMessageHandler getObjectFromMessage(byte[] message) throws IOException
ProtobufMessageHandlergetObjectFromMessage in interface ProtobufMessageHandlermessage - the raw bytes of the protobuf messageIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.