@InterfaceAudience.Private public class TableListModel extends Object implements Serializable, ProtobufMessageHandler
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
private List<TableModel> |
tables |
| 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()
Returns the protobuf represention of the model
|
TableModel |
get(int index) |
ProtobufMessageHandler |
getObjectFromMessage(byte[] message)
Initialize the model from a protobuf representation.
|
List<TableModel> |
getTables()
Returns the tables
|
void |
setTables(List<TableModel> tables) |
String |
toString() |
private static final long serialVersionUID
private List<TableModel> tables
public TableListModel()
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()
ProtobufMessageHandlercreateProtobufOutput 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.