@InterfaceAudience.Private public class TableListModel extends Object implements Serializable, ProtobufMessageHandler
| Constructor and Description |
|---|
TableListModel()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public void add(TableModel table)
table - the table modelpublic TableModel get(int index)
index - the indexpublic List<TableModel> getTables()
public void setTables(List<TableModel> tables)
tables - the tables to setpublic byte[] createProtobufOutput()
createProtobufOutput in interface ProtobufMessageHandlerpublic ProtobufMessageHandler getObjectFromMessage(byte[] message) throws IOException
ProtobufMessageHandlergetObjectFromMessage in interface ProtobufMessageHandlermessage - the raw bytes of the protobuf messageIOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.