|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.rest.model.TableListModel
public class TableListModel
Simple representation of a list of table names.
Constructor Summary | |
---|---|
TableListModel()
Default constructor |
Method Summary | |
---|---|
void |
add(TableModel table)
Add the table name model to the list |
byte[] |
createProtobufOutput()
|
TableModel |
get(int index)
|
ProtobufMessageHandler |
getObjectFromMessage(byte[] message)
Initialize the model from a protobuf representation. |
List<TableModel> |
getTables()
|
void |
setTables(List<TableModel> tables)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TableListModel()
Method Detail |
---|
public void add(TableModel table)
table
- the table modelpublic TableModel get(int index)
index
- the index
public List<TableModel> getTables()
public void setTables(List<TableModel> tables)
tables
- the tables to setpublic 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 |