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
FieldsFields inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
BUFFER_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(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.MessageConvert to model to a protobuf Message objectvoidsetTables(List<TableModel> tables) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:ProtobufMessageHandlerConvert to model to a protobuf Message object- Specified by:
messageFromObjectin interfaceProtobufMessageHandler- Returns:
- the protobuf Message object
-
getObjectFromMessage
public ProtobufMessageHandler getObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) throws IOException - Specified by:
getObjectFromMessagein interfaceProtobufMessageHandler- Throws:
IOException
-