@Generated(value="Autogenerated by Thrift Compiler (0.9.3)",
date="2017-06-27")
public class THRegionLocation
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<THRegionLocation>
| Modifier and Type | Class and Description |
|---|---|
static class |
THRegionLocation._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<THRegionLocation._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
THRegionInfo |
regionInfo |
TServerName |
serverName |
| Constructor and Description |
|---|
THRegionLocation() |
THRegionLocation(THRegionLocation other)
Performs a deep copy on other.
|
THRegionLocation(TServerName serverName,
THRegionInfo regionInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
compareTo(THRegionLocation other) |
THRegionLocation |
deepCopy() |
boolean |
equals(java.lang.Object that) |
boolean |
equals(THRegionLocation that) |
THRegionLocation._Fields |
fieldForId(int fieldId) |
java.lang.Object |
getFieldValue(THRegionLocation._Fields field) |
THRegionInfo |
getRegionInfo() |
TServerName |
getServerName() |
int |
hashCode() |
boolean |
isSet(THRegionLocation._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetRegionInfo()
Returns true if field regionInfo 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
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(THRegionLocation._Fields field,
java.lang.Object value) |
THRegionLocation |
setRegionInfo(THRegionInfo regionInfo) |
void |
setRegionInfoIsSet(boolean value) |
THRegionLocation |
setServerName(TServerName serverName) |
void |
setServerNameIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetRegionInfo() |
void |
unsetServerName() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public TServerName serverName
public THRegionInfo regionInfo
public static final java.util.Map<THRegionLocation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public THRegionLocation()
public THRegionLocation(TServerName serverName, THRegionInfo regionInfo)
public THRegionLocation(THRegionLocation other)
public THRegionLocation deepCopy()
public void clear()
public TServerName getServerName()
public THRegionLocation setServerName(TServerName serverName)
public void unsetServerName()
public boolean isSetServerName()
public void setServerNameIsSet(boolean value)
public THRegionInfo getRegionInfo()
public THRegionLocation setRegionInfo(THRegionInfo regionInfo)
public void unsetRegionInfo()
public boolean isSetRegionInfo()
public void setRegionInfoIsSet(boolean value)
public void setFieldValue(THRegionLocation._Fields field, java.lang.Object value)
public java.lang.Object getFieldValue(THRegionLocation._Fields field)
public boolean isSet(THRegionLocation._Fields field)
public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(THRegionLocation that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(THRegionLocation other)
compareTo in interface java.lang.Comparable<THRegionLocation>public THRegionLocation._Fields fieldForId(int fieldId)
public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TException