|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.thrift.generated.TRegionInfo
public class TRegionInfo
A TRegionInfo contains information about an HTable region.
| Nested Class Summary | |
|---|---|
static class |
TRegionInfo._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
| Field Summary | |
|---|---|
ByteBuffer |
endKey
|
long |
id
|
static Map<TRegionInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap
|
ByteBuffer |
name
|
ByteBuffer |
startKey
|
byte |
version
|
| Constructor Summary | |
|---|---|
TRegionInfo()
|
|
TRegionInfo(ByteBuffer startKey,
ByteBuffer endKey,
long id,
ByteBuffer name,
byte version)
|
|
TRegionInfo(TRegionInfo other)
Performs a deep copy on other. |
|
| Method Summary | |
|---|---|
ByteBuffer |
bufferForEndKey()
|
ByteBuffer |
bufferForName()
|
ByteBuffer |
bufferForStartKey()
|
void |
clear()
|
int |
compareTo(TRegionInfo other)
|
TRegionInfo |
deepCopy()
|
boolean |
equals(Object that)
|
boolean |
equals(TRegionInfo that)
|
TRegionInfo._Fields |
fieldForId(int fieldId)
|
byte[] |
getEndKey()
|
Object |
getFieldValue(TRegionInfo._Fields field)
|
long |
getId()
|
byte[] |
getName()
|
byte[] |
getStartKey()
|
byte |
getVersion()
|
int |
hashCode()
|
boolean |
isSet(TRegionInfo._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise |
boolean |
isSetEndKey()
Returns true if field endKey is set (has been assigned a value) and false otherwise |
boolean |
isSetId()
Returns true if field id is set (has been assigned a value) and false otherwise |
boolean |
isSetName()
Returns true if field name is set (has been assigned a value) and false otherwise |
boolean |
isSetStartKey()
Returns true if field startKey is set (has been assigned a value) and false otherwise |
boolean |
isSetVersion()
Returns true if field version is set (has been assigned a value) and false otherwise |
void |
read(org.apache.thrift.protocol.TProtocol iprot)
|
TRegionInfo |
setEndKey(byte[] endKey)
|
TRegionInfo |
setEndKey(ByteBuffer endKey)
|
void |
setEndKeyIsSet(boolean value)
|
void |
setFieldValue(TRegionInfo._Fields field,
Object value)
|
TRegionInfo |
setId(long id)
|
void |
setIdIsSet(boolean value)
|
TRegionInfo |
setName(byte[] name)
|
TRegionInfo |
setName(ByteBuffer name)
|
void |
setNameIsSet(boolean value)
|
TRegionInfo |
setStartKey(byte[] startKey)
|
TRegionInfo |
setStartKey(ByteBuffer startKey)
|
void |
setStartKeyIsSet(boolean value)
|
TRegionInfo |
setVersion(byte version)
|
void |
setVersionIsSet(boolean value)
|
String |
toString()
|
void |
unsetEndKey()
|
void |
unsetId()
|
void |
unsetName()
|
void |
unsetStartKey()
|
void |
unsetVersion()
|
void |
validate()
|
void |
write(org.apache.thrift.protocol.TProtocol oprot)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public ByteBuffer startKey
public ByteBuffer endKey
public long id
public ByteBuffer name
public byte version
public static final Map<TRegionInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
| Constructor Detail |
|---|
public TRegionInfo()
public TRegionInfo(ByteBuffer startKey,
ByteBuffer endKey,
long id,
ByteBuffer name,
byte version)
public TRegionInfo(TRegionInfo other)
| Method Detail |
|---|
public TRegionInfo deepCopy()
deepCopy in interface org.apache.thrift.TBase<TRegionInfo,TRegionInfo._Fields>public void clear()
clear in interface org.apache.thrift.TBase<TRegionInfo,TRegionInfo._Fields>public byte[] getStartKey()
public ByteBuffer bufferForStartKey()
public TRegionInfo setStartKey(byte[] startKey)
public TRegionInfo setStartKey(ByteBuffer startKey)
public void unsetStartKey()
public boolean isSetStartKey()
public void setStartKeyIsSet(boolean value)
public byte[] getEndKey()
public ByteBuffer bufferForEndKey()
public TRegionInfo setEndKey(byte[] endKey)
public TRegionInfo setEndKey(ByteBuffer endKey)
public void unsetEndKey()
public boolean isSetEndKey()
public void setEndKeyIsSet(boolean value)
public long getId()
public TRegionInfo setId(long id)
public void unsetId()
public boolean isSetId()
public void setIdIsSet(boolean value)
public byte[] getName()
public ByteBuffer bufferForName()
public TRegionInfo setName(byte[] name)
public TRegionInfo setName(ByteBuffer name)
public void unsetName()
public boolean isSetName()
public void setNameIsSet(boolean value)
public byte getVersion()
public TRegionInfo setVersion(byte version)
public void unsetVersion()
public boolean isSetVersion()
public void setVersionIsSet(boolean value)
public void setFieldValue(TRegionInfo._Fields field,
Object value)
setFieldValue in interface org.apache.thrift.TBase<TRegionInfo,TRegionInfo._Fields>public Object getFieldValue(TRegionInfo._Fields field)
getFieldValue in interface org.apache.thrift.TBase<TRegionInfo,TRegionInfo._Fields>public boolean isSet(TRegionInfo._Fields field)
isSet in interface org.apache.thrift.TBase<TRegionInfo,TRegionInfo._Fields>public boolean equals(Object that)
equals in class Objectpublic boolean equals(TRegionInfo that)
public int hashCode()
hashCode in class Objectpublic int compareTo(TRegionInfo other)
compareTo in interface Comparable<TRegionInfo>public TRegionInfo._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<TRegionInfo,TRegionInfo._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TBase<TRegionInfo,TRegionInfo._Fields>org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
write in interface org.apache.thrift.TBase<TRegionInfo,TRegionInfo._Fields>org.apache.thrift.TExceptionpublic String toString()
toString in class Object
public void validate()
throws org.apache.thrift.TException
org.apache.thrift.TException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||