Package ai.heavy.thrift.server
Class TSessionInfo
- java.lang.Object
-
- ai.heavy.thrift.server.TSessionInfo
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TSessionInfo>,org.apache.thrift.TBase<TSessionInfo,TSessionInfo._Fields>,org.apache.thrift.TSerializable
public class TSessionInfo extends Object implements org.apache.thrift.TBase<TSessionInfo,TSessionInfo._Fields>, Serializable, Cloneable, Comparable<TSessionInfo>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTSessionInfo._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description Stringdatabasebooleanis_superstatic Map<TSessionInfo._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMaplongstart_timeStringuser
-
Constructor Summary
Constructors Constructor Description TSessionInfo()TSessionInfo(TSessionInfo other)Performs a deep copy on other.TSessionInfo(String user, String database, long start_time, boolean is_super)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(TSessionInfo other)TSessionInfodeepCopy()booleanequals(TSessionInfo that)booleanequals(Object that)TSessionInfo._FieldsfieldForId(int fieldId)StringgetDatabase()ObjectgetFieldValue(TSessionInfo._Fields field)longgetStart_time()StringgetUser()inthashCode()booleanisIs_super()booleanisSet(TSessionInfo._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetDatabase()Returns true if field database is set (has been assigned a value) and false otherwisebooleanisSetIs_super()Returns true if field is_super is set (has been assigned a value) and false otherwisebooleanisSetStart_time()Returns true if field start_time is set (has been assigned a value) and false otherwisebooleanisSetUser()Returns true if field user is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)TSessionInfosetDatabase(String database)voidsetDatabaseIsSet(boolean value)voidsetFieldValue(TSessionInfo._Fields field, Object value)TSessionInfosetIs_super(boolean is_super)voidsetIs_superIsSet(boolean value)TSessionInfosetStart_time(long start_time)voidsetStart_timeIsSet(boolean value)TSessionInfosetUser(String user)voidsetUserIsSet(boolean value)StringtoString()voidunsetDatabase()voidunsetIs_super()voidunsetStart_time()voidunsetUser()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
user
public String user
-
database
public String database
-
start_time
public long start_time
-
is_super
public boolean is_super
-
metaDataMap
public static final Map<TSessionInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TSessionInfo
public TSessionInfo()
-
TSessionInfo
public TSessionInfo(TSessionInfo other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TSessionInfo deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TSessionInfo,TSessionInfo._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TSessionInfo,TSessionInfo._Fields>
-
getUser
public String getUser()
-
setUser
public TSessionInfo setUser(String user)
-
unsetUser
public void unsetUser()
-
isSetUser
public boolean isSetUser()
Returns true if field user is set (has been assigned a value) and false otherwise
-
setUserIsSet
public void setUserIsSet(boolean value)
-
getDatabase
public String getDatabase()
-
setDatabase
public TSessionInfo setDatabase(String database)
-
unsetDatabase
public void unsetDatabase()
-
isSetDatabase
public boolean isSetDatabase()
Returns true if field database is set (has been assigned a value) and false otherwise
-
setDatabaseIsSet
public void setDatabaseIsSet(boolean value)
-
getStart_time
public long getStart_time()
-
setStart_time
public TSessionInfo setStart_time(long start_time)
-
unsetStart_time
public void unsetStart_time()
-
isSetStart_time
public boolean isSetStart_time()
Returns true if field start_time is set (has been assigned a value) and false otherwise
-
setStart_timeIsSet
public void setStart_timeIsSet(boolean value)
-
isIs_super
public boolean isIs_super()
-
setIs_super
public TSessionInfo setIs_super(boolean is_super)
-
unsetIs_super
public void unsetIs_super()
-
isSetIs_super
public boolean isSetIs_super()
Returns true if field is_super is set (has been assigned a value) and false otherwise
-
setIs_superIsSet
public void setIs_superIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TSessionInfo._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TSessionInfo,TSessionInfo._Fields>
-
getFieldValue
public Object getFieldValue(TSessionInfo._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TSessionInfo,TSessionInfo._Fields>
-
isSet
public boolean isSet(TSessionInfo._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<TSessionInfo,TSessionInfo._Fields>
-
equals
public boolean equals(TSessionInfo that)
-
compareTo
public int compareTo(TSessionInfo other)
- Specified by:
compareToin interfaceComparable<TSessionInfo>
-
fieldForId
public TSessionInfo._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TSessionInfo,TSessionInfo._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
-
-