@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") 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 |
Constructor and Description |
---|
BlockLocation() |
BlockLocation(BlockLocation other)
Performs a deep copy on other.
|
BlockLocation(long workerId,
WorkerNetAddress workerAddress,
String tierAlias) |
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) |
String |
getTierAlias() |
WorkerNetAddress |
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 |
isSetTierAlias()
Returns true if field tierAlias 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 |
setTierAlias(String tierAlias) |
void |
setTierAliasIsSet(boolean value) |
BlockLocation |
setWorkerAddress(WorkerNetAddress workerAddress) |
void |
setWorkerAddressIsSet(boolean value) |
BlockLocation |
setWorkerId(long workerId) |
void |
setWorkerIdIsSet(boolean value) |
String |
toString() |
void |
unsetTierAlias() |
void |
unsetWorkerAddress() |
void |
unsetWorkerId() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<BlockLocation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public BlockLocation()
public BlockLocation(long workerId, WorkerNetAddress workerAddress, String tierAlias)
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 WorkerNetAddress getWorkerAddress()
public BlockLocation setWorkerAddress(WorkerNetAddress workerAddress)
public void unsetWorkerAddress()
public boolean isSetWorkerAddress()
public void setWorkerAddressIsSet(boolean value)
public String getTierAlias()
public BlockLocation setTierAlias(String tierAlias)
public void unsetTierAlias()
public boolean isSetTierAlias()
public void setTierAliasIsSet(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.TException
public 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.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2023. All Rights Reserved.