Class TableListModel
java.lang.Object
org.apache.hadoop.hbase.rest.model.TableListModel
- All Implemented Interfaces:
Serializable
,ProtobufMessageHandler
Simple representation of a list of table names.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(TableModel table) Add the table name model to the listbyte[]
Returns the protobuf represention of the modelget
(int index) getObjectFromMessage
(byte[] message) Initialize the model from a protobuf representation.Returns the tablesvoid
setTables
(List<TableModel> tables) toString()
-
Field Details
-
serialVersionUID
- See Also:
-
tables
-
-
Constructor Details
-
TableListModel
public TableListModel()Default constructor
-
-
Method Details
-
add
Add the table name model to the list- Parameters:
table
- the table model
-
get
- Parameters:
index
- the index- Returns:
- the table model
-
getTables
Returns the tables -
setTables
- Parameters:
tables
- the tables to set
-
toString
-
createProtobufOutput
Description copied from interface:ProtobufMessageHandler
Returns the protobuf represention of the model- Specified by:
createProtobufOutput
in interfaceProtobufMessageHandler
-
getObjectFromMessage
Description copied from interface:ProtobufMessageHandler
Initialize the model from a protobuf representation.- Specified by:
getObjectFromMessage
in interfaceProtobufMessageHandler
- Parameters:
message
- the raw bytes of the protobuf message- Returns:
- reference to self for convenience
- Throws:
IOException
-