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 inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
BUFFER_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(TableModel table) Add the table name model to the listget
(int index) getObjectFromMessage
(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) Returns the tablesorg.apache.hbase.thirdparty.com.google.protobuf.Message
Convert to model to a protobuf Message objectvoid
setTables
(List<TableModel> tables) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
createProtobufOutput, getObjectFromMessage, getObjectFromMessage, writeProtobufOutput
-
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
-
messageFromObject
Description copied from interface:ProtobufMessageHandler
Convert to model to a protobuf Message object- Specified by:
messageFromObject
in interfaceProtobufMessageHandler
- Returns:
- the protobuf Message object
-
getObjectFromMessage
public ProtobufMessageHandler getObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) throws IOException - Specified by:
getObjectFromMessage
in interfaceProtobufMessageHandler
- Throws:
IOException
-