@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2016-05-25") public class THRegionLocation extends Object implements org.apache.thrift.TBase<THRegionLocation,THRegionLocation._Fields>, Serializable, Cloneable, 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 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(Object that) |
boolean |
equals(THRegionLocation that) |
THRegionLocation._Fields |
fieldForId(int fieldId) |
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,
Object value) |
THRegionLocation |
setRegionInfo(THRegionInfo regionInfo) |
void |
setRegionInfoIsSet(boolean value) |
THRegionLocation |
setServerName(TServerName serverName) |
void |
setServerNameIsSet(boolean value) |
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 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()
deepCopy
in interface org.apache.thrift.TBase<THRegionLocation,THRegionLocation._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<THRegionLocation,THRegionLocation._Fields>
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, Object value)
setFieldValue
in interface org.apache.thrift.TBase<THRegionLocation,THRegionLocation._Fields>
public Object getFieldValue(THRegionLocation._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<THRegionLocation,THRegionLocation._Fields>
public boolean isSet(THRegionLocation._Fields field)
isSet
in interface org.apache.thrift.TBase<THRegionLocation,THRegionLocation._Fields>
public boolean equals(THRegionLocation that)
public int compareTo(THRegionLocation other)
compareTo
in interface Comparable<THRegionLocation>
public THRegionLocation._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<THRegionLocation,THRegionLocation._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<THRegionLocation,THRegionLocation._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<THRegionLocation,THRegionLocation._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2007–2019 Cloudera. All rights reserved.