|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.rest.model.TableInfoModel
@InterfaceAudience.Private public class TableInfoModel
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>
| Constructor Summary | |
|---|---|
TableInfoModel()
Default constructor |
|
TableInfoModel(String name)
Constructor |
|
| Method Summary | |
|---|---|
void |
add(TableRegionModel region)
Add a region model to the list |
byte[] |
createProtobufOutput()
|
TableRegionModel |
get(int index)
|
String |
getName()
|
ProtobufMessageHandler |
getObjectFromMessage(byte[] message)
Initialize the model from a protobuf representation. |
List<TableRegionModel> |
getRegions()
|
void |
setName(String name)
|
void |
setRegions(List<TableRegionModel> regions)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TableInfoModel()
public TableInfoModel(String name)
name - | Method Detail |
|---|
public void add(TableRegionModel region)
region - the regionpublic TableRegionModel get(int index)
index - the index
public String getName()
public List<TableRegionModel> getRegions()
public void setName(String name)
name - the table namepublic void setRegions(List<TableRegionModel> regions)
regions - the regions to setpublic String toString()
toString in class Objectpublic byte[] createProtobufOutput()
createProtobufOutput in interface ProtobufMessageHandler
public ProtobufMessageHandler getObjectFromMessage(byte[] message)
throws IOException
ProtobufMessageHandler
getObjectFromMessage in interface ProtobufMessageHandlermessage - the raw bytes of the protobuf message
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||