Package org.apache.iotdb.mpp.rpc.thrift
Class TCreatePeerReq
- java.lang.Object
-
- org.apache.iotdb.mpp.rpc.thrift.TCreatePeerReq
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TCreatePeerReq>,org.apache.thrift.TBase<TCreatePeerReq,TCreatePeerReq._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.1)", date="2023-12-27") public class TCreatePeerReq extends Object implements org.apache.thrift.TBase<TCreatePeerReq,TCreatePeerReq._Fields>, Serializable, Cloneable, Comparable<TCreatePeerReq>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTCreatePeerReq._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description static Map<TCreatePeerReq._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapTConsensusGroupIdregionIdList<TDataNodeLocation>regionLocationsStringstorageGrouplongttl
-
Constructor Summary
Constructors Constructor Description TCreatePeerReq()TCreatePeerReq(TConsensusGroupId regionId, List<TDataNodeLocation> regionLocations, String storageGroup)TCreatePeerReq(TCreatePeerReq other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToRegionLocations(TDataNodeLocation elem)voidclear()intcompareTo(TCreatePeerReq other)TCreatePeerReqdeepCopy()booleanequals(Object that)booleanequals(TCreatePeerReq that)TCreatePeerReq._FieldsfieldForId(int fieldId)ObjectgetFieldValue(TCreatePeerReq._Fields field)TConsensusGroupIdgetRegionId()List<TDataNodeLocation>getRegionLocations()Iterator<TDataNodeLocation>getRegionLocationsIterator()intgetRegionLocationsSize()StringgetStorageGroup()longgetTtl()inthashCode()booleanisSet(TCreatePeerReq._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetRegionId()Returns true if field regionId is set (has been assigned a value) and false otherwisebooleanisSetRegionLocations()Returns true if field regionLocations is set (has been assigned a value) and false otherwisebooleanisSetStorageGroup()Returns true if field storageGroup is set (has been assigned a value) and false otherwisebooleanisSetTtl()Returns true if field ttl is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)voidsetFieldValue(TCreatePeerReq._Fields field, Object value)TCreatePeerReqsetRegionId(TConsensusGroupId regionId)voidsetRegionIdIsSet(boolean value)TCreatePeerReqsetRegionLocations(List<TDataNodeLocation> regionLocations)voidsetRegionLocationsIsSet(boolean value)TCreatePeerReqsetStorageGroup(String storageGroup)voidsetStorageGroupIsSet(boolean value)TCreatePeerReqsetTtl(long ttl)voidsetTtlIsSet(boolean value)StringtoString()voidunsetRegionId()voidunsetRegionLocations()voidunsetStorageGroup()voidunsetTtl()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
regionId
public TConsensusGroupId regionId
-
regionLocations
public List<TDataNodeLocation> regionLocations
-
storageGroup
public String storageGroup
-
ttl
public long ttl
-
metaDataMap
public static final Map<TCreatePeerReq._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TCreatePeerReq
public TCreatePeerReq()
-
TCreatePeerReq
public TCreatePeerReq(TConsensusGroupId regionId, List<TDataNodeLocation> regionLocations, String storageGroup)
-
TCreatePeerReq
public TCreatePeerReq(TCreatePeerReq other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TCreatePeerReq deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TCreatePeerReq,TCreatePeerReq._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TCreatePeerReq,TCreatePeerReq._Fields>
-
getRegionId
public TConsensusGroupId getRegionId()
-
setRegionId
public TCreatePeerReq setRegionId(TConsensusGroupId regionId)
-
unsetRegionId
public void unsetRegionId()
-
isSetRegionId
public boolean isSetRegionId()
Returns true if field regionId is set (has been assigned a value) and false otherwise
-
setRegionIdIsSet
public void setRegionIdIsSet(boolean value)
-
getRegionLocationsSize
public int getRegionLocationsSize()
-
getRegionLocationsIterator
public Iterator<TDataNodeLocation> getRegionLocationsIterator()
-
addToRegionLocations
public void addToRegionLocations(TDataNodeLocation elem)
-
getRegionLocations
public List<TDataNodeLocation> getRegionLocations()
-
setRegionLocations
public TCreatePeerReq setRegionLocations(List<TDataNodeLocation> regionLocations)
-
unsetRegionLocations
public void unsetRegionLocations()
-
isSetRegionLocations
public boolean isSetRegionLocations()
Returns true if field regionLocations is set (has been assigned a value) and false otherwise
-
setRegionLocationsIsSet
public void setRegionLocationsIsSet(boolean value)
-
getStorageGroup
public String getStorageGroup()
-
setStorageGroup
public TCreatePeerReq setStorageGroup(String storageGroup)
-
unsetStorageGroup
public void unsetStorageGroup()
-
isSetStorageGroup
public boolean isSetStorageGroup()
Returns true if field storageGroup is set (has been assigned a value) and false otherwise
-
setStorageGroupIsSet
public void setStorageGroupIsSet(boolean value)
-
getTtl
public long getTtl()
-
setTtl
public TCreatePeerReq setTtl(long ttl)
-
unsetTtl
public void unsetTtl()
-
isSetTtl
public boolean isSetTtl()
Returns true if field ttl is set (has been assigned a value) and false otherwise
-
setTtlIsSet
public void setTtlIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TCreatePeerReq._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TCreatePeerReq,TCreatePeerReq._Fields>
-
getFieldValue
public Object getFieldValue(TCreatePeerReq._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TCreatePeerReq,TCreatePeerReq._Fields>
-
isSet
public boolean isSet(TCreatePeerReq._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<TCreatePeerReq,TCreatePeerReq._Fields>
-
equals
public boolean equals(TCreatePeerReq that)
-
compareTo
public int compareTo(TCreatePeerReq other)
- Specified by:
compareToin interfaceComparable<TCreatePeerReq>
-
fieldForId
public TCreatePeerReq._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TCreatePeerReq,TCreatePeerReq._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
-
-