|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.rest.model.NamespacesInstanceModel
@InterfaceAudience.Private public class NamespacesInstanceModel
List a HBase namespace's key/value properties.
Constructor Summary | |
---|---|
NamespacesInstanceModel()
Default constructor. |
|
NamespacesInstanceModel(HBaseAdmin admin,
String namespaceName)
Constructor |
|
NamespacesInstanceModel(String namespaceName)
Constructor to use if namespace does not exist in HBASE. |
Method Summary | |
---|---|
void |
addProperty(String key,
String value)
Add property to the namespace. |
byte[] |
createProtobufOutput()
|
String |
getNamespaceName()
|
ProtobufMessageHandler |
getObjectFromMessage(byte[] message)
Initialize the model from a protobuf representation. |
Map<String,String> |
getProperties()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NamespacesInstanceModel()
public NamespacesInstanceModel(String namespaceName) throws IOException
namespaceName:
- the namespace name.
IOException
public NamespacesInstanceModel(HBaseAdmin admin, String namespaceName) throws IOException
admin:
- the administrative APInamespaceName:
- the namespace name.
IOException
Method Detail |
---|
public void addProperty(String key, String value)
key:
- attribute namevalue
- attribute valuepublic Map<String,String> getProperties()
public String getNamespaceName()
public String toString()
toString
in class Object
public byte[] createProtobufOutput()
createProtobufOutput
in interface ProtobufMessageHandler
public ProtobufMessageHandler getObjectFromMessage(byte[] message) throws IOException
ProtobufMessageHandler
getObjectFromMessage
in interface ProtobufMessageHandler
message
- the raw bytes of the protobuf message
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |