@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>
Modifier and Type | Field and Description |
---|---|
private byte[] |
endKey |
private long |
id |
private String |
location |
private static long |
serialVersionUID |
private byte[] |
startKey |
private String |
table |
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() |
private static final long serialVersionUID
private long id
private byte[] startKey
private byte[] endKey
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 long getId()
public byte[] getStartKey()
public byte[] getEndKey()
public String getLocation()
public 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–2019 The Apache Software Foundation. All rights reserved.