public class ClientBlockInfo extends Object implements org.apache.thrift.TBase<ClientBlockInfo,ClientBlockInfo._Fields>, Serializable, Cloneable, Comparable<ClientBlockInfo>
Modifier and Type | Class and Description |
---|---|
static class |
ClientBlockInfo._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
long |
blockId |
long |
length |
List<NetAddress> |
locations |
static Map<ClientBlockInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
long |
offset |
Constructor and Description |
---|
ClientBlockInfo() |
ClientBlockInfo(ClientBlockInfo other)
Performs a deep copy on other.
|
ClientBlockInfo(long blockId,
long offset,
long length,
List<NetAddress> locations) |
Modifier and Type | Method and Description |
---|---|
void |
addToLocations(NetAddress elem) |
void |
clear() |
int |
compareTo(ClientBlockInfo other) |
ClientBlockInfo |
deepCopy() |
boolean |
equals(ClientBlockInfo that) |
boolean |
equals(Object that) |
ClientBlockInfo._Fields |
fieldForId(int fieldId) |
long |
getBlockId() |
Object |
getFieldValue(ClientBlockInfo._Fields field) |
long |
getLength() |
List<NetAddress> |
getLocations() |
Iterator<NetAddress> |
getLocationsIterator() |
int |
getLocationsSize() |
long |
getOffset() |
int |
hashCode() |
boolean |
isSet(ClientBlockInfo._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetBlockId()
Returns true if field blockId is set (has been assigned a value) and false otherwise
|
boolean |
isSetLength()
Returns true if field length is set (has been assigned a value) and false otherwise
|
boolean |
isSetLocations()
Returns true if field locations is set (has been assigned a value) and false otherwise
|
boolean |
isSetOffset()
Returns true if field offset is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
ClientBlockInfo |
setBlockId(long blockId) |
void |
setBlockIdIsSet(boolean value) |
void |
setFieldValue(ClientBlockInfo._Fields field,
Object value) |
ClientBlockInfo |
setLength(long length) |
void |
setLengthIsSet(boolean value) |
ClientBlockInfo |
setLocations(List<NetAddress> locations) |
void |
setLocationsIsSet(boolean value) |
ClientBlockInfo |
setOffset(long offset) |
void |
setOffsetIsSet(boolean value) |
String |
toString() |
void |
unsetBlockId() |
void |
unsetLength() |
void |
unsetLocations() |
void |
unsetOffset() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public long blockId
public long offset
public long length
public List<NetAddress> locations
public static final Map<ClientBlockInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public ClientBlockInfo()
public ClientBlockInfo(long blockId, long offset, long length, List<NetAddress> locations)
public ClientBlockInfo(ClientBlockInfo other)
public ClientBlockInfo deepCopy()
deepCopy
in interface org.apache.thrift.TBase<ClientBlockInfo,ClientBlockInfo._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<ClientBlockInfo,ClientBlockInfo._Fields>
public long getBlockId()
public ClientBlockInfo setBlockId(long blockId)
public void unsetBlockId()
public boolean isSetBlockId()
public void setBlockIdIsSet(boolean value)
public long getOffset()
public ClientBlockInfo setOffset(long offset)
public void unsetOffset()
public boolean isSetOffset()
public void setOffsetIsSet(boolean value)
public long getLength()
public ClientBlockInfo setLength(long length)
public void unsetLength()
public boolean isSetLength()
public void setLengthIsSet(boolean value)
public int getLocationsSize()
public Iterator<NetAddress> getLocationsIterator()
public void addToLocations(NetAddress elem)
public List<NetAddress> getLocations()
public ClientBlockInfo setLocations(List<NetAddress> locations)
public void unsetLocations()
public boolean isSetLocations()
public void setLocationsIsSet(boolean value)
public void setFieldValue(ClientBlockInfo._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<ClientBlockInfo,ClientBlockInfo._Fields>
public Object getFieldValue(ClientBlockInfo._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<ClientBlockInfo,ClientBlockInfo._Fields>
public boolean isSet(ClientBlockInfo._Fields field)
isSet
in interface org.apache.thrift.TBase<ClientBlockInfo,ClientBlockInfo._Fields>
public boolean equals(ClientBlockInfo that)
public int compareTo(ClientBlockInfo other)
compareTo
in interface Comparable<ClientBlockInfo>
public ClientBlockInfo._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<ClientBlockInfo,ClientBlockInfo._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<ClientBlockInfo,ClientBlockInfo._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<ClientBlockInfo,ClientBlockInfo._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2013. All rights reserved.