Package org.apache.iotdb.mpp.rpc.thrift
Class TDataNodeHeartbeatReq
- java.lang.Object
-
- org.apache.iotdb.mpp.rpc.thrift.TDataNodeHeartbeatReq
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TDataNodeHeartbeatReq>,org.apache.thrift.TBase<TDataNodeHeartbeatReq,TDataNodeHeartbeatReq._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.1)", date="2023-12-27") public class TDataNodeHeartbeatReq extends Object implements org.apache.thrift.TBase<TDataNodeHeartbeatReq,TDataNodeHeartbeatReq._Fields>, Serializable, Cloneable, Comparable<TDataNodeHeartbeatReq>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTDataNodeHeartbeatReq._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description TDataNodeActivationactivationList<Integer>dataRegionIdslongdeviceQuotaRemainlongheartbeatTimestampstatic Map<TDataNodeHeartbeatReq._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapbooleanneedJudgeLeaderbooleanneedPipeMetaListbooleanneedSamplingLoadList<Integer>schemaRegionIdsMap<String,TSpaceQuota>spaceQuotaUsagelongtimeSeriesQuotaRemain
-
Constructor Summary
Constructors Constructor Description TDataNodeHeartbeatReq()TDataNodeHeartbeatReq(long heartbeatTimestamp, boolean needJudgeLeader, boolean needSamplingLoad, long timeSeriesQuotaRemain)TDataNodeHeartbeatReq(TDataNodeHeartbeatReq other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToDataRegionIds(int elem)voidaddToSchemaRegionIds(int elem)voidclear()intcompareTo(TDataNodeHeartbeatReq other)TDataNodeHeartbeatReqdeepCopy()booleanequals(Object that)booleanequals(TDataNodeHeartbeatReq that)TDataNodeHeartbeatReq._FieldsfieldForId(int fieldId)TDataNodeActivationgetActivation()List<Integer>getDataRegionIds()Iterator<Integer>getDataRegionIdsIterator()intgetDataRegionIdsSize()longgetDeviceQuotaRemain()ObjectgetFieldValue(TDataNodeHeartbeatReq._Fields field)longgetHeartbeatTimestamp()List<Integer>getSchemaRegionIds()Iterator<Integer>getSchemaRegionIdsIterator()intgetSchemaRegionIdsSize()Map<String,TSpaceQuota>getSpaceQuotaUsage()intgetSpaceQuotaUsageSize()longgetTimeSeriesQuotaRemain()inthashCode()booleanisNeedJudgeLeader()booleanisNeedPipeMetaList()booleanisNeedSamplingLoad()booleanisSet(TDataNodeHeartbeatReq._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetActivation()Returns true if field activation is set (has been assigned a value) and false otherwisebooleanisSetDataRegionIds()Returns true if field dataRegionIds is set (has been assigned a value) and false otherwisebooleanisSetDeviceQuotaRemain()Returns true if field deviceQuotaRemain is set (has been assigned a value) and false otherwisebooleanisSetHeartbeatTimestamp()Returns true if field heartbeatTimestamp is set (has been assigned a value) and false otherwisebooleanisSetNeedJudgeLeader()Returns true if field needJudgeLeader is set (has been assigned a value) and false otherwisebooleanisSetNeedPipeMetaList()Returns true if field needPipeMetaList is set (has been assigned a value) and false otherwisebooleanisSetNeedSamplingLoad()Returns true if field needSamplingLoad is set (has been assigned a value) and false otherwisebooleanisSetSchemaRegionIds()Returns true if field schemaRegionIds is set (has been assigned a value) and false otherwisebooleanisSetSpaceQuotaUsage()Returns true if field spaceQuotaUsage is set (has been assigned a value) and false otherwisebooleanisSetTimeSeriesQuotaRemain()Returns true if field timeSeriesQuotaRemain is set (has been assigned a value) and false otherwisevoidputToSpaceQuotaUsage(String key, TSpaceQuota val)voidread(org.apache.thrift.protocol.TProtocol iprot)TDataNodeHeartbeatReqsetActivation(TDataNodeActivation activation)voidsetActivationIsSet(boolean value)TDataNodeHeartbeatReqsetDataRegionIds(List<Integer> dataRegionIds)voidsetDataRegionIdsIsSet(boolean value)TDataNodeHeartbeatReqsetDeviceQuotaRemain(long deviceQuotaRemain)voidsetDeviceQuotaRemainIsSet(boolean value)voidsetFieldValue(TDataNodeHeartbeatReq._Fields field, Object value)TDataNodeHeartbeatReqsetHeartbeatTimestamp(long heartbeatTimestamp)voidsetHeartbeatTimestampIsSet(boolean value)TDataNodeHeartbeatReqsetNeedJudgeLeader(boolean needJudgeLeader)voidsetNeedJudgeLeaderIsSet(boolean value)TDataNodeHeartbeatReqsetNeedPipeMetaList(boolean needPipeMetaList)voidsetNeedPipeMetaListIsSet(boolean value)TDataNodeHeartbeatReqsetNeedSamplingLoad(boolean needSamplingLoad)voidsetNeedSamplingLoadIsSet(boolean value)TDataNodeHeartbeatReqsetSchemaRegionIds(List<Integer> schemaRegionIds)voidsetSchemaRegionIdsIsSet(boolean value)TDataNodeHeartbeatReqsetSpaceQuotaUsage(Map<String,TSpaceQuota> spaceQuotaUsage)voidsetSpaceQuotaUsageIsSet(boolean value)TDataNodeHeartbeatReqsetTimeSeriesQuotaRemain(long timeSeriesQuotaRemain)voidsetTimeSeriesQuotaRemainIsSet(boolean value)StringtoString()voidunsetActivation()voidunsetDataRegionIds()voidunsetDeviceQuotaRemain()voidunsetHeartbeatTimestamp()voidunsetNeedJudgeLeader()voidunsetNeedPipeMetaList()voidunsetNeedSamplingLoad()voidunsetSchemaRegionIds()voidunsetSpaceQuotaUsage()voidunsetTimeSeriesQuotaRemain()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
heartbeatTimestamp
public long heartbeatTimestamp
-
needJudgeLeader
public boolean needJudgeLeader
-
needSamplingLoad
public boolean needSamplingLoad
-
timeSeriesQuotaRemain
public long timeSeriesQuotaRemain
-
spaceQuotaUsage
public Map<String,TSpaceQuota> spaceQuotaUsage
-
needPipeMetaList
public boolean needPipeMetaList
-
deviceQuotaRemain
public long deviceQuotaRemain
-
activation
public TDataNodeActivation activation
-
metaDataMap
public static final Map<TDataNodeHeartbeatReq._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TDataNodeHeartbeatReq
public TDataNodeHeartbeatReq()
-
TDataNodeHeartbeatReq
public TDataNodeHeartbeatReq(long heartbeatTimestamp, boolean needJudgeLeader, boolean needSamplingLoad, long timeSeriesQuotaRemain)
-
TDataNodeHeartbeatReq
public TDataNodeHeartbeatReq(TDataNodeHeartbeatReq other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TDataNodeHeartbeatReq deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TDataNodeHeartbeatReq,TDataNodeHeartbeatReq._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TDataNodeHeartbeatReq,TDataNodeHeartbeatReq._Fields>
-
getHeartbeatTimestamp
public long getHeartbeatTimestamp()
-
setHeartbeatTimestamp
public TDataNodeHeartbeatReq setHeartbeatTimestamp(long heartbeatTimestamp)
-
unsetHeartbeatTimestamp
public void unsetHeartbeatTimestamp()
-
isSetHeartbeatTimestamp
public boolean isSetHeartbeatTimestamp()
Returns true if field heartbeatTimestamp is set (has been assigned a value) and false otherwise
-
setHeartbeatTimestampIsSet
public void setHeartbeatTimestampIsSet(boolean value)
-
isNeedJudgeLeader
public boolean isNeedJudgeLeader()
-
setNeedJudgeLeader
public TDataNodeHeartbeatReq setNeedJudgeLeader(boolean needJudgeLeader)
-
unsetNeedJudgeLeader
public void unsetNeedJudgeLeader()
-
isSetNeedJudgeLeader
public boolean isSetNeedJudgeLeader()
Returns true if field needJudgeLeader is set (has been assigned a value) and false otherwise
-
setNeedJudgeLeaderIsSet
public void setNeedJudgeLeaderIsSet(boolean value)
-
isNeedSamplingLoad
public boolean isNeedSamplingLoad()
-
setNeedSamplingLoad
public TDataNodeHeartbeatReq setNeedSamplingLoad(boolean needSamplingLoad)
-
unsetNeedSamplingLoad
public void unsetNeedSamplingLoad()
-
isSetNeedSamplingLoad
public boolean isSetNeedSamplingLoad()
Returns true if field needSamplingLoad is set (has been assigned a value) and false otherwise
-
setNeedSamplingLoadIsSet
public void setNeedSamplingLoadIsSet(boolean value)
-
getTimeSeriesQuotaRemain
public long getTimeSeriesQuotaRemain()
-
setTimeSeriesQuotaRemain
public TDataNodeHeartbeatReq setTimeSeriesQuotaRemain(long timeSeriesQuotaRemain)
-
unsetTimeSeriesQuotaRemain
public void unsetTimeSeriesQuotaRemain()
-
isSetTimeSeriesQuotaRemain
public boolean isSetTimeSeriesQuotaRemain()
Returns true if field timeSeriesQuotaRemain is set (has been assigned a value) and false otherwise
-
setTimeSeriesQuotaRemainIsSet
public void setTimeSeriesQuotaRemainIsSet(boolean value)
-
getSchemaRegionIdsSize
public int getSchemaRegionIdsSize()
-
addToSchemaRegionIds
public void addToSchemaRegionIds(int elem)
-
setSchemaRegionIds
public TDataNodeHeartbeatReq setSchemaRegionIds(List<Integer> schemaRegionIds)
-
unsetSchemaRegionIds
public void unsetSchemaRegionIds()
-
isSetSchemaRegionIds
public boolean isSetSchemaRegionIds()
Returns true if field schemaRegionIds is set (has been assigned a value) and false otherwise
-
setSchemaRegionIdsIsSet
public void setSchemaRegionIdsIsSet(boolean value)
-
getDataRegionIdsSize
public int getDataRegionIdsSize()
-
addToDataRegionIds
public void addToDataRegionIds(int elem)
-
setDataRegionIds
public TDataNodeHeartbeatReq setDataRegionIds(List<Integer> dataRegionIds)
-
unsetDataRegionIds
public void unsetDataRegionIds()
-
isSetDataRegionIds
public boolean isSetDataRegionIds()
Returns true if field dataRegionIds is set (has been assigned a value) and false otherwise
-
setDataRegionIdsIsSet
public void setDataRegionIdsIsSet(boolean value)
-
getSpaceQuotaUsageSize
public int getSpaceQuotaUsageSize()
-
putToSpaceQuotaUsage
public void putToSpaceQuotaUsage(String key, TSpaceQuota val)
-
getSpaceQuotaUsage
public Map<String,TSpaceQuota> getSpaceQuotaUsage()
-
setSpaceQuotaUsage
public TDataNodeHeartbeatReq setSpaceQuotaUsage(Map<String,TSpaceQuota> spaceQuotaUsage)
-
unsetSpaceQuotaUsage
public void unsetSpaceQuotaUsage()
-
isSetSpaceQuotaUsage
public boolean isSetSpaceQuotaUsage()
Returns true if field spaceQuotaUsage is set (has been assigned a value) and false otherwise
-
setSpaceQuotaUsageIsSet
public void setSpaceQuotaUsageIsSet(boolean value)
-
isNeedPipeMetaList
public boolean isNeedPipeMetaList()
-
setNeedPipeMetaList
public TDataNodeHeartbeatReq setNeedPipeMetaList(boolean needPipeMetaList)
-
unsetNeedPipeMetaList
public void unsetNeedPipeMetaList()
-
isSetNeedPipeMetaList
public boolean isSetNeedPipeMetaList()
Returns true if field needPipeMetaList is set (has been assigned a value) and false otherwise
-
setNeedPipeMetaListIsSet
public void setNeedPipeMetaListIsSet(boolean value)
-
getDeviceQuotaRemain
public long getDeviceQuotaRemain()
-
setDeviceQuotaRemain
public TDataNodeHeartbeatReq setDeviceQuotaRemain(long deviceQuotaRemain)
-
unsetDeviceQuotaRemain
public void unsetDeviceQuotaRemain()
-
isSetDeviceQuotaRemain
public boolean isSetDeviceQuotaRemain()
Returns true if field deviceQuotaRemain is set (has been assigned a value) and false otherwise
-
setDeviceQuotaRemainIsSet
public void setDeviceQuotaRemainIsSet(boolean value)
-
getActivation
public TDataNodeActivation getActivation()
-
setActivation
public TDataNodeHeartbeatReq setActivation(TDataNodeActivation activation)
-
unsetActivation
public void unsetActivation()
-
isSetActivation
public boolean isSetActivation()
Returns true if field activation is set (has been assigned a value) and false otherwise
-
setActivationIsSet
public void setActivationIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TDataNodeHeartbeatReq._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TDataNodeHeartbeatReq,TDataNodeHeartbeatReq._Fields>
-
getFieldValue
public Object getFieldValue(TDataNodeHeartbeatReq._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TDataNodeHeartbeatReq,TDataNodeHeartbeatReq._Fields>
-
isSet
public boolean isSet(TDataNodeHeartbeatReq._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<TDataNodeHeartbeatReq,TDataNodeHeartbeatReq._Fields>
-
equals
public boolean equals(TDataNodeHeartbeatReq that)
-
compareTo
public int compareTo(TDataNodeHeartbeatReq other)
- Specified by:
compareToin interfaceComparable<TDataNodeHeartbeatReq>
-
fieldForId
public TDataNodeHeartbeatReq._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TDataNodeHeartbeatReq,TDataNodeHeartbeatReq._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-