@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() |
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() |
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()
createProtobufOutput
in interface ProtobufMessageHandler
public ProtobufMessageHandler getObjectFromMessage(byte[] message) throws IOException
ProtobufMessageHandler
getObjectFromMessage
in interface ProtobufMessageHandler
message
- the raw bytes of the protobuf messageIOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.