@Generated(value="Autogenerated by Thrift Compiler (0.9.2)", date="2015-10-16") public class FileBlockInfo extends Object implements org.apache.thrift.TBase<FileBlockInfo,FileBlockInfo._Fields>, Serializable, Cloneable, Comparable<FileBlockInfo>
| Modifier and Type | Class and Description |
|---|---|
static class |
FileBlockInfo._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
BlockInfo |
blockInfo |
static Map<FileBlockInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
long |
offset |
List<NetAddress> |
ufsLocations |
| Constructor and Description |
|---|
FileBlockInfo() |
FileBlockInfo(BlockInfo blockInfo,
long offset,
List<NetAddress> ufsLocations) |
FileBlockInfo(FileBlockInfo other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToUfsLocations(NetAddress elem) |
void |
clear() |
int |
compareTo(FileBlockInfo other) |
FileBlockInfo |
deepCopy() |
boolean |
equals(FileBlockInfo that) |
boolean |
equals(Object that) |
FileBlockInfo._Fields |
fieldForId(int fieldId) |
BlockInfo |
getBlockInfo() |
Object |
getFieldValue(FileBlockInfo._Fields field) |
long |
getOffset() |
List<NetAddress> |
getUfsLocations() |
Iterator<NetAddress> |
getUfsLocationsIterator() |
int |
getUfsLocationsSize() |
int |
hashCode() |
boolean |
isSet(FileBlockInfo._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetBlockInfo()
Returns true if field blockInfo 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
|
boolean |
isSetUfsLocations()
Returns true if field ufsLocations is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
FileBlockInfo |
setBlockInfo(BlockInfo blockInfo) |
void |
setBlockInfoIsSet(boolean value) |
void |
setFieldValue(FileBlockInfo._Fields field,
Object value) |
FileBlockInfo |
setOffset(long offset) |
void |
setOffsetIsSet(boolean value) |
FileBlockInfo |
setUfsLocations(List<NetAddress> ufsLocations) |
void |
setUfsLocationsIsSet(boolean value) |
String |
toString() |
void |
unsetBlockInfo() |
void |
unsetOffset() |
void |
unsetUfsLocations() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public BlockInfo blockInfo
public long offset
public List<NetAddress> ufsLocations
public static final Map<FileBlockInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public FileBlockInfo()
public FileBlockInfo(BlockInfo blockInfo, long offset, List<NetAddress> ufsLocations)
public FileBlockInfo(FileBlockInfo other)
public FileBlockInfo deepCopy()
deepCopy in interface org.apache.thrift.TBase<FileBlockInfo,FileBlockInfo._Fields>public void clear()
clear in interface org.apache.thrift.TBase<FileBlockInfo,FileBlockInfo._Fields>public BlockInfo getBlockInfo()
public FileBlockInfo setBlockInfo(BlockInfo blockInfo)
public void unsetBlockInfo()
public boolean isSetBlockInfo()
public void setBlockInfoIsSet(boolean value)
public long getOffset()
public FileBlockInfo setOffset(long offset)
public void unsetOffset()
public boolean isSetOffset()
public void setOffsetIsSet(boolean value)
public int getUfsLocationsSize()
public Iterator<NetAddress> getUfsLocationsIterator()
public void addToUfsLocations(NetAddress elem)
public List<NetAddress> getUfsLocations()
public FileBlockInfo setUfsLocations(List<NetAddress> ufsLocations)
public void unsetUfsLocations()
public boolean isSetUfsLocations()
public void setUfsLocationsIsSet(boolean value)
public void setFieldValue(FileBlockInfo._Fields field, Object value)
setFieldValue in interface org.apache.thrift.TBase<FileBlockInfo,FileBlockInfo._Fields>public Object getFieldValue(FileBlockInfo._Fields field)
getFieldValue in interface org.apache.thrift.TBase<FileBlockInfo,FileBlockInfo._Fields>public boolean isSet(FileBlockInfo._Fields field)
isSet in interface org.apache.thrift.TBase<FileBlockInfo,FileBlockInfo._Fields>public boolean equals(FileBlockInfo that)
public int compareTo(FileBlockInfo other)
compareTo in interface Comparable<FileBlockInfo>public FileBlockInfo._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<FileBlockInfo,FileBlockInfo._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TBase<FileBlockInfo,FileBlockInfo._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<FileBlockInfo,FileBlockInfo._Fields>org.apache.thrift.TExceptionpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2015. All Rights Reserved.