@Generated(value="Autogenerated by Thrift Compiler (0.9.2)", date="2015-10-16") public class BlockLocation extends Object implements org.apache.thrift.TBase<BlockLocation,BlockLocation._Fields>, Serializable, Cloneable, Comparable<BlockLocation>
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockLocation._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<BlockLocation._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
int |
tier |
NetAddress |
workerAddress |
long |
workerId |
| Constructor and Description |
|---|
BlockLocation() |
BlockLocation(BlockLocation other)
Performs a deep copy on other.
|
BlockLocation(long workerId,
NetAddress workerAddress,
int tier) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
compareTo(BlockLocation other) |
BlockLocation |
deepCopy() |
boolean |
equals(BlockLocation that) |
boolean |
equals(Object that) |
BlockLocation._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(BlockLocation._Fields field) |
int |
getTier() |
NetAddress |
getWorkerAddress() |
long |
getWorkerId() |
int |
hashCode() |
boolean |
isSet(BlockLocation._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetTier()
Returns true if field tier is set (has been assigned a value) and false otherwise
|
boolean |
isSetWorkerAddress()
Returns true if field workerAddress is set (has been assigned a value) and false otherwise
|
boolean |
isSetWorkerId()
Returns true if field workerId is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(BlockLocation._Fields field,
Object value) |
BlockLocation |
setTier(int tier) |
void |
setTierIsSet(boolean value) |
BlockLocation |
setWorkerAddress(NetAddress workerAddress) |
void |
setWorkerAddressIsSet(boolean value) |
BlockLocation |
setWorkerId(long workerId) |
void |
setWorkerIdIsSet(boolean value) |
String |
toString() |
void |
unsetTier() |
void |
unsetWorkerAddress() |
void |
unsetWorkerId() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public long workerId
public NetAddress workerAddress
public int tier
public static final Map<BlockLocation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public BlockLocation()
public BlockLocation(long workerId,
NetAddress workerAddress,
int tier)
public BlockLocation(BlockLocation other)
public BlockLocation deepCopy()
deepCopy in interface org.apache.thrift.TBase<BlockLocation,BlockLocation._Fields>public void clear()
clear in interface org.apache.thrift.TBase<BlockLocation,BlockLocation._Fields>public long getWorkerId()
public BlockLocation setWorkerId(long workerId)
public void unsetWorkerId()
public boolean isSetWorkerId()
public void setWorkerIdIsSet(boolean value)
public NetAddress getWorkerAddress()
public BlockLocation setWorkerAddress(NetAddress workerAddress)
public void unsetWorkerAddress()
public boolean isSetWorkerAddress()
public void setWorkerAddressIsSet(boolean value)
public int getTier()
public BlockLocation setTier(int tier)
public void unsetTier()
public boolean isSetTier()
public void setTierIsSet(boolean value)
public void setFieldValue(BlockLocation._Fields field, Object value)
setFieldValue in interface org.apache.thrift.TBase<BlockLocation,BlockLocation._Fields>public Object getFieldValue(BlockLocation._Fields field)
getFieldValue in interface org.apache.thrift.TBase<BlockLocation,BlockLocation._Fields>public boolean isSet(BlockLocation._Fields field)
isSet in interface org.apache.thrift.TBase<BlockLocation,BlockLocation._Fields>public boolean equals(BlockLocation that)
public int compareTo(BlockLocation other)
compareTo in interface Comparable<BlockLocation>public BlockLocation._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<BlockLocation,BlockLocation._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TBase<BlockLocation,BlockLocation._Fields>org.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
write in interface org.apache.thrift.TBase<BlockLocation,BlockLocation._Fields>org.apache.thrift.TExceptionpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2015. All Rights Reserved.