@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") 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 |
---|---|
static Map<FileBlockInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
FileBlockInfo() |
FileBlockInfo(BlockInfo blockInfo,
long offset,
List<WorkerNetAddress> ufsLocations,
List<String> ufsStringLocations) |
FileBlockInfo(FileBlockInfo other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
addToUfsLocations(WorkerNetAddress elem) |
void |
addToUfsStringLocations(String 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<WorkerNetAddress> |
getUfsLocations() |
Iterator<WorkerNetAddress> |
getUfsLocationsIterator() |
int |
getUfsLocationsSize() |
List<String> |
getUfsStringLocations() |
Iterator<String> |
getUfsStringLocationsIterator() |
int |
getUfsStringLocationsSize() |
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
|
boolean |
isSetUfsStringLocations()
Returns true if field ufsStringLocations 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<WorkerNetAddress> ufsLocations) |
void |
setUfsLocationsIsSet(boolean value) |
FileBlockInfo |
setUfsStringLocations(List<String> ufsStringLocations) |
void |
setUfsStringLocationsIsSet(boolean value) |
String |
toString() |
void |
unsetBlockInfo() |
void |
unsetOffset() |
void |
unsetUfsLocations() |
void |
unsetUfsStringLocations() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<FileBlockInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public FileBlockInfo()
public FileBlockInfo(BlockInfo blockInfo, long offset, List<WorkerNetAddress> ufsLocations, List<String> ufsStringLocations)
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<WorkerNetAddress> getUfsLocationsIterator()
public void addToUfsLocations(WorkerNetAddress elem)
public List<WorkerNetAddress> getUfsLocations()
public FileBlockInfo setUfsLocations(List<WorkerNetAddress> ufsLocations)
public void unsetUfsLocations()
public boolean isSetUfsLocations()
public void setUfsLocationsIsSet(boolean value)
public int getUfsStringLocationsSize()
public void addToUfsStringLocations(String elem)
public FileBlockInfo setUfsStringLocations(List<String> ufsStringLocations)
public void unsetUfsStringLocations()
public boolean isSetUfsStringLocations()
public void setUfsStringLocationsIsSet(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.TException
public 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.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2023. All Rights Reserved.