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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(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 tablesvoidsetTables(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:ProtobufMessageHandlerReturns the protobuf represention of the model- Specified by:
createProtobufOutputin interfaceProtobufMessageHandler
-
getObjectFromMessage
Description copied from interface:ProtobufMessageHandlerInitialize the model from a protobuf representation.- Specified by:
getObjectFromMessagein interfaceProtobufMessageHandler- Parameters:
message- the raw bytes of the protobuf message- Returns:
- reference to self for convenience
- Throws:
IOException
-