Class TableInfoModel
java.lang.Object
org.apache.hadoop.hbase.rest.model.TableInfoModel
- All Implemented Interfaces:
 Serializable,ProtobufMessageHandler
Representation of a list of table regions.
 
 <complexType name="TableInfo">
   <sequence>
     <element name="region" type="tns:TableRegion"
       maxOccurs="unbounded" minOccurs="1"></element>
   </sequence>
   <attribute name="name" type="string"></attribute>
 </complexType>
 - See Also:
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate List<TableRegionModel>private static final longFields inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
BUFFER_SIZE - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidadd(TableRegionModel region) Add a region model to the listget(int index) getName()Returns the table namegetObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) Returns the regionsorg.apache.hbase.thirdparty.com.google.protobuf.MessageConvert to model to a protobuf Message objectvoidvoidsetRegions(List<TableRegionModel> regions) 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:
 
 - 
name
 - 
regions
 
 - 
 - 
Constructor Details
- 
TableInfoModel
public TableInfoModel()Default constructor - 
TableInfoModel
Constructor 
 - 
 - 
Method Details
- 
add
Add a region model to the list- Parameters:
 region- the region
 - 
get
- Parameters:
 index- the index- Returns:
 - the region model
 
 - 
getName
Returns the table name - 
getRegions
Returns the regions - 
setName
- Parameters:
 name- the table name
 - 
setRegions
- Parameters:
 regions- the regions 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
 
 -