@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2016-05-25") public class THRegionInfo extends Object implements org.apache.thrift.TBase<THRegionInfo,THRegionInfo._Fields>, Serializable, Cloneable, Comparable<THRegionInfo>
Modifier and Type | Class and Description |
---|---|
static class |
THRegionInfo._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
ByteBuffer |
endKey |
static Map<THRegionInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
boolean |
offline |
long |
regionId |
int |
replicaId |
boolean |
split |
ByteBuffer |
startKey |
ByteBuffer |
tableName |
Constructor and Description |
---|
THRegionInfo() |
THRegionInfo(long regionId,
ByteBuffer tableName) |
THRegionInfo(THRegionInfo other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
bufferForEndKey() |
ByteBuffer |
bufferForStartKey() |
ByteBuffer |
bufferForTableName() |
void |
clear() |
int |
compareTo(THRegionInfo other) |
THRegionInfo |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(THRegionInfo that) |
THRegionInfo._Fields |
fieldForId(int fieldId) |
byte[] |
getEndKey() |
Object |
getFieldValue(THRegionInfo._Fields field) |
long |
getRegionId() |
int |
getReplicaId() |
byte[] |
getStartKey() |
byte[] |
getTableName() |
int |
hashCode() |
boolean |
isOffline() |
boolean |
isSet(THRegionInfo._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 |
isSetOffline()
Returns true if field offline is set (has been assigned a value) and false otherwise
|
boolean |
isSetRegionId()
Returns true if field regionId is set (has been assigned a value) and false otherwise
|
boolean |
isSetReplicaId()
Returns true if field replicaId is set (has been assigned a value) and false otherwise
|
boolean |
isSetSplit()
Returns true if field split 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 |
isSetTableName()
Returns true if field tableName is set (has been assigned a value) and false otherwise
|
boolean |
isSplit() |
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
THRegionInfo |
setEndKey(byte[] endKey) |
THRegionInfo |
setEndKey(ByteBuffer endKey) |
void |
setEndKeyIsSet(boolean value) |
void |
setFieldValue(THRegionInfo._Fields field,
Object value) |
THRegionInfo |
setOffline(boolean offline) |
void |
setOfflineIsSet(boolean value) |
THRegionInfo |
setRegionId(long regionId) |
void |
setRegionIdIsSet(boolean value) |
THRegionInfo |
setReplicaId(int replicaId) |
void |
setReplicaIdIsSet(boolean value) |
THRegionInfo |
setSplit(boolean split) |
void |
setSplitIsSet(boolean value) |
THRegionInfo |
setStartKey(byte[] startKey) |
THRegionInfo |
setStartKey(ByteBuffer startKey) |
void |
setStartKeyIsSet(boolean value) |
THRegionInfo |
setTableName(byte[] tableName) |
THRegionInfo |
setTableName(ByteBuffer tableName) |
void |
setTableNameIsSet(boolean value) |
String |
toString() |
void |
unsetEndKey() |
void |
unsetOffline() |
void |
unsetRegionId() |
void |
unsetReplicaId() |
void |
unsetSplit() |
void |
unsetStartKey() |
void |
unsetTableName() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public long regionId
public ByteBuffer tableName
public ByteBuffer startKey
public ByteBuffer endKey
public boolean offline
public boolean split
public int replicaId
public static final Map<THRegionInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public THRegionInfo()
public THRegionInfo(long regionId, ByteBuffer tableName)
public THRegionInfo(THRegionInfo other)
public THRegionInfo deepCopy()
deepCopy
in interface org.apache.thrift.TBase<THRegionInfo,THRegionInfo._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<THRegionInfo,THRegionInfo._Fields>
public long getRegionId()
public THRegionInfo setRegionId(long regionId)
public void unsetRegionId()
public boolean isSetRegionId()
public void setRegionIdIsSet(boolean value)
public byte[] getTableName()
public ByteBuffer bufferForTableName()
public THRegionInfo setTableName(byte[] tableName)
public THRegionInfo setTableName(ByteBuffer tableName)
public void unsetTableName()
public boolean isSetTableName()
public void setTableNameIsSet(boolean value)
public byte[] getStartKey()
public ByteBuffer bufferForStartKey()
public THRegionInfo setStartKey(byte[] startKey)
public THRegionInfo setStartKey(ByteBuffer startKey)
public void unsetStartKey()
public boolean isSetStartKey()
public void setStartKeyIsSet(boolean value)
public byte[] getEndKey()
public ByteBuffer bufferForEndKey()
public THRegionInfo setEndKey(byte[] endKey)
public THRegionInfo setEndKey(ByteBuffer endKey)
public void unsetEndKey()
public boolean isSetEndKey()
public void setEndKeyIsSet(boolean value)
public boolean isOffline()
public THRegionInfo setOffline(boolean offline)
public void unsetOffline()
public boolean isSetOffline()
public void setOfflineIsSet(boolean value)
public boolean isSplit()
public THRegionInfo setSplit(boolean split)
public void unsetSplit()
public boolean isSetSplit()
public void setSplitIsSet(boolean value)
public int getReplicaId()
public THRegionInfo setReplicaId(int replicaId)
public void unsetReplicaId()
public boolean isSetReplicaId()
public void setReplicaIdIsSet(boolean value)
public void setFieldValue(THRegionInfo._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<THRegionInfo,THRegionInfo._Fields>
public Object getFieldValue(THRegionInfo._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<THRegionInfo,THRegionInfo._Fields>
public boolean isSet(THRegionInfo._Fields field)
isSet
in interface org.apache.thrift.TBase<THRegionInfo,THRegionInfo._Fields>
public boolean equals(THRegionInfo that)
public int compareTo(THRegionInfo other)
compareTo
in interface Comparable<THRegionInfo>
public THRegionInfo._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<THRegionInfo,THRegionInfo._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<THRegionInfo,THRegionInfo._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<THRegionInfo,THRegionInfo._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2007–2019 Cloudera. All rights reserved.