@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") public class BlockMasterInfo extends Object implements org.apache.thrift.TBase<BlockMasterInfo,BlockMasterInfo._Fields>, Serializable, Cloneable, Comparable<BlockMasterInfo>
Modifier and Type | Class and Description |
---|---|
static class |
BlockMasterInfo._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<BlockMasterInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
BlockMasterInfo() |
BlockMasterInfo(BlockMasterInfo other)
Performs a deep copy on other.
|
BlockMasterInfo(long capacityBytes,
Map<String,Long> capacityBytesOnTiers,
long freeBytes,
int liveWorkerNum,
int lostWorkerNum,
long usedBytes,
Map<String,Long> usedBytesOnTiers) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(BlockMasterInfo other) |
BlockMasterInfo |
deepCopy() |
boolean |
equals(BlockMasterInfo that) |
boolean |
equals(Object that) |
BlockMasterInfo._Fields |
fieldForId(int fieldId) |
long |
getCapacityBytes() |
Map<String,Long> |
getCapacityBytesOnTiers() |
int |
getCapacityBytesOnTiersSize() |
Object |
getFieldValue(BlockMasterInfo._Fields field) |
long |
getFreeBytes() |
int |
getLiveWorkerNum() |
int |
getLostWorkerNum() |
long |
getUsedBytes() |
Map<String,Long> |
getUsedBytesOnTiers() |
int |
getUsedBytesOnTiersSize() |
int |
hashCode() |
boolean |
isSet(BlockMasterInfo._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetCapacityBytes()
Returns true if field capacityBytes is set (has been assigned a value) and false otherwise
|
boolean |
isSetCapacityBytesOnTiers()
Returns true if field capacityBytesOnTiers is set (has been assigned a value) and false otherwise
|
boolean |
isSetFreeBytes()
Returns true if field freeBytes is set (has been assigned a value) and false otherwise
|
boolean |
isSetLiveWorkerNum()
Returns true if field liveWorkerNum is set (has been assigned a value) and false otherwise
|
boolean |
isSetLostWorkerNum()
Returns true if field lostWorkerNum is set (has been assigned a value) and false otherwise
|
boolean |
isSetUsedBytes()
Returns true if field usedBytes is set (has been assigned a value) and false otherwise
|
boolean |
isSetUsedBytesOnTiers()
Returns true if field usedBytesOnTiers is set (has been assigned a value) and false otherwise
|
void |
putToCapacityBytesOnTiers(String key,
long val) |
void |
putToUsedBytesOnTiers(String key,
long val) |
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
BlockMasterInfo |
setCapacityBytes(long capacityBytes) |
void |
setCapacityBytesIsSet(boolean value) |
BlockMasterInfo |
setCapacityBytesOnTiers(Map<String,Long> capacityBytesOnTiers) |
void |
setCapacityBytesOnTiersIsSet(boolean value) |
void |
setFieldValue(BlockMasterInfo._Fields field,
Object value) |
BlockMasterInfo |
setFreeBytes(long freeBytes) |
void |
setFreeBytesIsSet(boolean value) |
BlockMasterInfo |
setLiveWorkerNum(int liveWorkerNum) |
void |
setLiveWorkerNumIsSet(boolean value) |
BlockMasterInfo |
setLostWorkerNum(int lostWorkerNum) |
void |
setLostWorkerNumIsSet(boolean value) |
BlockMasterInfo |
setUsedBytes(long usedBytes) |
void |
setUsedBytesIsSet(boolean value) |
BlockMasterInfo |
setUsedBytesOnTiers(Map<String,Long> usedBytesOnTiers) |
void |
setUsedBytesOnTiersIsSet(boolean value) |
String |
toString() |
void |
unsetCapacityBytes() |
void |
unsetCapacityBytesOnTiers() |
void |
unsetFreeBytes() |
void |
unsetLiveWorkerNum() |
void |
unsetLostWorkerNum() |
void |
unsetUsedBytes() |
void |
unsetUsedBytesOnTiers() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<BlockMasterInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public BlockMasterInfo()
public BlockMasterInfo(long capacityBytes, Map<String,Long> capacityBytesOnTiers, long freeBytes, int liveWorkerNum, int lostWorkerNum, long usedBytes, Map<String,Long> usedBytesOnTiers)
public BlockMasterInfo(BlockMasterInfo other)
public BlockMasterInfo deepCopy()
deepCopy
in interface org.apache.thrift.TBase<BlockMasterInfo,BlockMasterInfo._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<BlockMasterInfo,BlockMasterInfo._Fields>
public long getCapacityBytes()
public BlockMasterInfo setCapacityBytes(long capacityBytes)
public void unsetCapacityBytes()
public boolean isSetCapacityBytes()
public void setCapacityBytesIsSet(boolean value)
public int getCapacityBytesOnTiersSize()
public void putToCapacityBytesOnTiers(String key, long val)
public BlockMasterInfo setCapacityBytesOnTiers(Map<String,Long> capacityBytesOnTiers)
public void unsetCapacityBytesOnTiers()
public boolean isSetCapacityBytesOnTiers()
public void setCapacityBytesOnTiersIsSet(boolean value)
public long getFreeBytes()
public BlockMasterInfo setFreeBytes(long freeBytes)
public void unsetFreeBytes()
public boolean isSetFreeBytes()
public void setFreeBytesIsSet(boolean value)
public int getLiveWorkerNum()
public BlockMasterInfo setLiveWorkerNum(int liveWorkerNum)
public void unsetLiveWorkerNum()
public boolean isSetLiveWorkerNum()
public void setLiveWorkerNumIsSet(boolean value)
public int getLostWorkerNum()
public BlockMasterInfo setLostWorkerNum(int lostWorkerNum)
public void unsetLostWorkerNum()
public boolean isSetLostWorkerNum()
public void setLostWorkerNumIsSet(boolean value)
public long getUsedBytes()
public BlockMasterInfo setUsedBytes(long usedBytes)
public void unsetUsedBytes()
public boolean isSetUsedBytes()
public void setUsedBytesIsSet(boolean value)
public int getUsedBytesOnTiersSize()
public void putToUsedBytesOnTiers(String key, long val)
public BlockMasterInfo setUsedBytesOnTiers(Map<String,Long> usedBytesOnTiers)
public void unsetUsedBytesOnTiers()
public boolean isSetUsedBytesOnTiers()
public void setUsedBytesOnTiersIsSet(boolean value)
public void setFieldValue(BlockMasterInfo._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<BlockMasterInfo,BlockMasterInfo._Fields>
public Object getFieldValue(BlockMasterInfo._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<BlockMasterInfo,BlockMasterInfo._Fields>
public boolean isSet(BlockMasterInfo._Fields field)
isSet
in interface org.apache.thrift.TBase<BlockMasterInfo,BlockMasterInfo._Fields>
public boolean equals(BlockMasterInfo that)
public int compareTo(BlockMasterInfo other)
compareTo
in interface Comparable<BlockMasterInfo>
public BlockMasterInfo._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<BlockMasterInfo,BlockMasterInfo._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<BlockMasterInfo,BlockMasterInfo._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<BlockMasterInfo,BlockMasterInfo._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2023. All Rights Reserved.