@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") public class BlockInfo extends Object implements org.apache.thrift.TBase<BlockInfo,BlockInfo._Fields>, Serializable, Cloneable, Comparable<BlockInfo>
Modifier and Type | Class and Description |
---|---|
static class |
BlockInfo._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<BlockInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
BlockInfo() |
BlockInfo(BlockInfo other)
Performs a deep copy on other.
|
BlockInfo(long blockId,
long length,
List<BlockLocation> locations) |
Modifier and Type | Method and Description |
---|---|
void |
addToLocations(BlockLocation elem) |
void |
clear() |
int |
compareTo(BlockInfo other) |
BlockInfo |
deepCopy() |
boolean |
equals(BlockInfo that) |
boolean |
equals(Object that) |
BlockInfo._Fields |
fieldForId(int fieldId) |
long |
getBlockId() |
Object |
getFieldValue(BlockInfo._Fields field) |
long |
getLength() |
List<BlockLocation> |
getLocations() |
Iterator<BlockLocation> |
getLocationsIterator() |
int |
getLocationsSize() |
int |
hashCode() |
boolean |
isSet(BlockInfo._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
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
BlockInfo |
setBlockId(long blockId) |
void |
setBlockIdIsSet(boolean value) |
void |
setFieldValue(BlockInfo._Fields field,
Object value) |
BlockInfo |
setLength(long length) |
void |
setLengthIsSet(boolean value) |
BlockInfo |
setLocations(List<BlockLocation> locations) |
void |
setLocationsIsSet(boolean value) |
String |
toString() |
void |
unsetBlockId() |
void |
unsetLength() |
void |
unsetLocations() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<BlockInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public BlockInfo()
public BlockInfo(long blockId, long length, List<BlockLocation> locations)
public BlockInfo(BlockInfo other)
public BlockInfo deepCopy()
deepCopy
in interface org.apache.thrift.TBase<BlockInfo,BlockInfo._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<BlockInfo,BlockInfo._Fields>
public long getBlockId()
public BlockInfo setBlockId(long blockId)
public void unsetBlockId()
public boolean isSetBlockId()
public void setBlockIdIsSet(boolean value)
public long getLength()
public BlockInfo setLength(long length)
public void unsetLength()
public boolean isSetLength()
public void setLengthIsSet(boolean value)
public int getLocationsSize()
public Iterator<BlockLocation> getLocationsIterator()
public void addToLocations(BlockLocation elem)
public List<BlockLocation> getLocations()
public BlockInfo setLocations(List<BlockLocation> locations)
public void unsetLocations()
public boolean isSetLocations()
public void setLocationsIsSet(boolean value)
public void setFieldValue(BlockInfo._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<BlockInfo,BlockInfo._Fields>
public Object getFieldValue(BlockInfo._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<BlockInfo,BlockInfo._Fields>
public boolean isSet(BlockInfo._Fields field)
isSet
in interface org.apache.thrift.TBase<BlockInfo,BlockInfo._Fields>
public boolean equals(BlockInfo that)
public int compareTo(BlockInfo other)
compareTo
in interface Comparable<BlockInfo>
public BlockInfo._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<BlockInfo,BlockInfo._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<BlockInfo,BlockInfo._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<BlockInfo,BlockInfo._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2023. All Rights Reserved.