@InterfaceAudience.Private public class TableRegionModel extends Object implements Serializable
<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 and Description |
---|
TableRegionModel()
Constructor
|
TableRegionModel(String table,
long id,
byte[] startKey,
byte[] endKey)
Constructor
|
TableRegionModel(String table,
long id,
byte[] startKey,
byte[] endKey,
String location)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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() |
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 regionpublic 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 regionpublic 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 regionCopyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.