|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.rest.model.TableRegionModel
@InterfaceAudience.Private public class TableRegionModel
Representation of a region of a table and its current location on the storage cluster.
<complexType name="TableRegion"> <attribute name="name" type="string"></attribute> <attribute name="id" type="int"></attribute> <attribute name="startKey" type="base64Binary"></attribute> <attribute name="endKey" type="base64Binary"></attribute> <attribute name="location" type="string"></attribute> </complexType>
| Constructor Summary | |
|---|---|
TableRegionModel()
Constructor |
|
TableRegionModel(String table,
long id,
byte[] startKey,
byte[] endKey)
Constructor |
|
TableRegionModel(String table,
long id,
byte[] startKey,
byte[] endKey,
String location)
Constructor |
|
| Method Summary | |
|---|---|
byte[] |
getEndKey()
|
long |
getId()
|
String |
getLocation()
|
String |
getName()
|
byte[] |
getStartKey()
|
void |
setEndKey(byte[] endKey)
|
void |
setId(long id)
|
void |
setLocation(String location)
|
void |
setName(String name)
|
void |
setStartKey(byte[] startKey)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TableRegionModel()
public TableRegionModel(String table,
long id,
byte[] startKey,
byte[] endKey)
table - the table nameid - the encoded id of the regionstartKey - the start key of the regionendKey - the end key of the region
public TableRegionModel(String table,
long id,
byte[] startKey,
byte[] endKey,
String location)
table - the table nameid - the encoded id of the regionstartKey - the start key of the regionendKey - the end key of the regionlocation - the name and port of the region server hosting the region| Method Detail |
|---|
public String getName()
public long getId()
public byte[] getStartKey()
public byte[] getEndKey()
public String getLocation()
public void setName(String name)
name - region printable namepublic void setId(long id)
id - the region's encoded idpublic void setStartKey(byte[] startKey)
startKey - the start keypublic void setEndKey(byte[] endKey)
endKey - the end keypublic void setLocation(String location)
location - the name and port of the region server hosting the regionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||