@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2016-05-25") public class TRegionInfo extends Object implements org.apache.thrift.TBase<TRegionInfo,TRegionInfo._Fields>, Serializable, Cloneable, Comparable<TRegionInfo>
Modifier and Type | Class and Description |
---|---|
static class |
TRegionInfo._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 |
long |
id |
static Map<TRegionInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
ByteBuffer |
name |
int |
port |
ByteBuffer |
serverName |
ByteBuffer |
startKey |
byte |
version |
Constructor and Description |
---|
TRegionInfo() |
TRegionInfo(ByteBuffer startKey,
ByteBuffer endKey,
long id,
ByteBuffer name,
byte version,
ByteBuffer serverName,
int port) |
TRegionInfo(TRegionInfo other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
bufferForEndKey() |
ByteBuffer |
bufferForName() |
ByteBuffer |
bufferForServerName() |
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() |
int |
getPort() |
byte[] |
getServerName() |
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 |
isSetPort()
Returns true if field port is set (has been assigned a value) and false otherwise
|
boolean |
isSetServerName()
Returns true if field serverName 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 |
setPort(int port) |
void |
setPortIsSet(boolean value) |
TRegionInfo |
setServerName(byte[] serverName) |
TRegionInfo |
setServerName(ByteBuffer serverName) |
void |
setServerNameIsSet(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 |
unsetPort() |
void |
unsetServerName() |
void |
unsetStartKey() |
void |
unsetVersion() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public ByteBuffer startKey
public ByteBuffer endKey
public long id
public ByteBuffer name
public byte version
public ByteBuffer serverName
public int port
public static final Map<TRegionInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public TRegionInfo()
public TRegionInfo(ByteBuffer startKey, ByteBuffer endKey, long id, ByteBuffer name, byte version, ByteBuffer serverName, int port)
public TRegionInfo(TRegionInfo other)
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 byte[] getServerName()
public ByteBuffer bufferForServerName()
public TRegionInfo setServerName(byte[] serverName)
public TRegionInfo setServerName(ByteBuffer serverName)
public void unsetServerName()
public boolean isSetServerName()
public void setServerNameIsSet(boolean value)
public int getPort()
public TRegionInfo setPort(int port)
public void unsetPort()
public boolean isSetPort()
public void setPortIsSet(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(TRegionInfo that)
public 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.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2007–2019 Cloudera. All rights reserved.