Class TSConnectionInfo
- java.lang.Object
-
- org.apache.iotdb.service.rpc.thrift.TSConnectionInfo
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TSConnectionInfo>,org.apache.thrift.TBase<TSConnectionInfo,TSConnectionInfo._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.1)", date="2023-12-27") public class TSConnectionInfo extends Object implements org.apache.thrift.TBase<TSConnectionInfo,TSConnectionInfo._Fields>, Serializable, Cloneable, Comparable<TSConnectionInfo>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTSConnectionInfo._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description StringconnectionIdlonglogInTimestatic Map<TSConnectionInfo._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapTSConnectionTypetypeStringuserName
-
Constructor Summary
Constructors Constructor Description TSConnectionInfo()TSConnectionInfo(String userName, long logInTime, String connectionId, TSConnectionType type)TSConnectionInfo(TSConnectionInfo other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(TSConnectionInfo other)TSConnectionInfodeepCopy()booleanequals(Object that)booleanequals(TSConnectionInfo that)TSConnectionInfo._FieldsfieldForId(int fieldId)StringgetConnectionId()ObjectgetFieldValue(TSConnectionInfo._Fields field)longgetLogInTime()TSConnectionTypegetType()StringgetUserName()inthashCode()booleanisSet(TSConnectionInfo._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetConnectionId()Returns true if field connectionId is set (has been assigned a value) and false otherwisebooleanisSetLogInTime()Returns true if field logInTime is set (has been assigned a value) and false otherwisebooleanisSetType()Returns true if field type is set (has been assigned a value) and false otherwisebooleanisSetUserName()Returns true if field userName is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)TSConnectionInfosetConnectionId(String connectionId)voidsetConnectionIdIsSet(boolean value)voidsetFieldValue(TSConnectionInfo._Fields field, Object value)TSConnectionInfosetLogInTime(long logInTime)voidsetLogInTimeIsSet(boolean value)TSConnectionInfosetType(TSConnectionType type)voidsetTypeIsSet(boolean value)TSConnectionInfosetUserName(String userName)voidsetUserNameIsSet(boolean value)StringtoString()voidunsetConnectionId()voidunsetLogInTime()voidunsetType()voidunsetUserName()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
userName
public String userName
-
logInTime
public long logInTime
-
connectionId
public String connectionId
-
type
public TSConnectionType type
- See Also:
TSConnectionType
-
metaDataMap
public static final Map<TSConnectionInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TSConnectionInfo
public TSConnectionInfo()
-
TSConnectionInfo
public TSConnectionInfo(String userName, long logInTime, String connectionId, TSConnectionType type)
-
TSConnectionInfo
public TSConnectionInfo(TSConnectionInfo other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TSConnectionInfo deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TSConnectionInfo,TSConnectionInfo._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TSConnectionInfo,TSConnectionInfo._Fields>
-
getUserName
public String getUserName()
-
setUserName
public TSConnectionInfo setUserName(String userName)
-
unsetUserName
public void unsetUserName()
-
isSetUserName
public boolean isSetUserName()
Returns true if field userName is set (has been assigned a value) and false otherwise
-
setUserNameIsSet
public void setUserNameIsSet(boolean value)
-
getLogInTime
public long getLogInTime()
-
setLogInTime
public TSConnectionInfo setLogInTime(long logInTime)
-
unsetLogInTime
public void unsetLogInTime()
-
isSetLogInTime
public boolean isSetLogInTime()
Returns true if field logInTime is set (has been assigned a value) and false otherwise
-
setLogInTimeIsSet
public void setLogInTimeIsSet(boolean value)
-
getConnectionId
public String getConnectionId()
-
setConnectionId
public TSConnectionInfo setConnectionId(String connectionId)
-
unsetConnectionId
public void unsetConnectionId()
-
isSetConnectionId
public boolean isSetConnectionId()
Returns true if field connectionId is set (has been assigned a value) and false otherwise
-
setConnectionIdIsSet
public void setConnectionIdIsSet(boolean value)
-
getType
public TSConnectionType getType()
- See Also:
TSConnectionType
-
setType
public TSConnectionInfo setType(TSConnectionType type)
- See Also:
TSConnectionType
-
unsetType
public void unsetType()
-
isSetType
public boolean isSetType()
Returns true if field type is set (has been assigned a value) and false otherwise
-
setTypeIsSet
public void setTypeIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TSConnectionInfo._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TSConnectionInfo,TSConnectionInfo._Fields>
-
getFieldValue
public Object getFieldValue(TSConnectionInfo._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TSConnectionInfo,TSConnectionInfo._Fields>
-
isSet
public boolean isSet(TSConnectionInfo._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<TSConnectionInfo,TSConnectionInfo._Fields>
-
equals
public boolean equals(TSConnectionInfo that)
-
compareTo
public int compareTo(TSConnectionInfo other)
- Specified by:
compareToin interfaceComparable<TSConnectionInfo>
-
fieldForId
public TSConnectionInfo._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TSConnectionInfo,TSConnectionInfo._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
-
-