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
Modifier and TypeFieldDescriptionprivate String
private List<TableRegionModel>
private static final long
Fields inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
BUFFER_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(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.Message
Convert to model to a protobuf Message objectvoid
void
setRegions
(List<TableRegionModel> regions) 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:
-
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: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
-