Package io.trino.hive.thrift.metastore
Class TxnInfo
java.lang.Object
io.trino.hive.thrift.metastore.TxnInfo
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TxnInfo>,org.apache.thrift.TBase<TxnInfo,,TxnInfo._Fields> org.apache.thrift.TSerializable
@Generated("Autogenerated by Thrift Compiler (0.17.0)")
public class TxnInfo
extends Object
implements org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>, Serializable, Cloneable, Comparable<TxnInfo>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<TxnInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intdeepCopy()booleanbooleanfieldForId(int fieldId) getFieldValue(TxnInfo._Fields field) intlonggetId()longlonggetState()getUser()inthashCode()booleanisSet(TxnInfo._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field agentInfo is set (has been assigned a value) and false otherwisebooleanReturns true if field heartbeatCount is set (has been assigned a value) and false otherwisebooleanReturns true if field hostname is set (has been assigned a value) and false otherwisebooleanisSetId()Returns true if field id is set (has been assigned a value) and false otherwisebooleanReturns true if field lastHeartbeatTime is set (has been assigned a value) and false otherwisebooleanReturns true if field metaInfo is set (has been assigned a value) and false otherwisebooleanReturns true if field startedTime is set (has been assigned a value) and false otherwisebooleanReturns true if field state is set (has been assigned a value) and false otherwisebooleanReturns true if field user is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) setAgentInfo(String agentInfo) voidsetAgentInfoIsSet(boolean value) voidsetFieldValue(TxnInfo._Fields field, Object value) setHeartbeatCount(int heartbeatCount) voidsetHeartbeatCountIsSet(boolean value) setHostname(String hostname) voidsetHostnameIsSet(boolean value) setId(long id) voidsetIdIsSet(boolean value) setLastHeartbeatTime(long lastHeartbeatTime) voidsetLastHeartbeatTimeIsSet(boolean value) setMetaInfo(String metaInfo) voidsetMetaInfoIsSet(boolean value) setStartedTime(long startedTime) voidsetStartedTimeIsSet(boolean value) voidsetStateIsSet(boolean value) voidsetUserIsSet(boolean value) toString()voidvoidvoidvoidunsetId()voidvoidvoidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
metaDataMap
-
-
Constructor Details
-
TxnInfo
public TxnInfo() -
TxnInfo
-
TxnInfo
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
-
getId
public long getId() -
setId
-
unsetId
public void unsetId() -
isSetId
public boolean isSetId()Returns true if field id is set (has been assigned a value) and false otherwise -
setIdIsSet
public void setIdIsSet(boolean value) -
getState
- See Also:
-
setState
- See Also:
-
unsetState
public void unsetState() -
isSetState
public boolean isSetState()Returns true if field state is set (has been assigned a value) and false otherwise -
setStateIsSet
public void setStateIsSet(boolean value) -
getUser
-
setUser
-
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) -
getHostname
-
setHostname
-
unsetHostname
public void unsetHostname() -
isSetHostname
public boolean isSetHostname()Returns true if field hostname is set (has been assigned a value) and false otherwise -
setHostnameIsSet
public void setHostnameIsSet(boolean value) -
getAgentInfo
-
setAgentInfo
-
unsetAgentInfo
public void unsetAgentInfo() -
isSetAgentInfo
public boolean isSetAgentInfo()Returns true if field agentInfo is set (has been assigned a value) and false otherwise -
setAgentInfoIsSet
public void setAgentInfoIsSet(boolean value) -
getHeartbeatCount
public int getHeartbeatCount() -
setHeartbeatCount
-
unsetHeartbeatCount
public void unsetHeartbeatCount() -
isSetHeartbeatCount
public boolean isSetHeartbeatCount()Returns true if field heartbeatCount is set (has been assigned a value) and false otherwise -
setHeartbeatCountIsSet
public void setHeartbeatCountIsSet(boolean value) -
getMetaInfo
-
setMetaInfo
-
unsetMetaInfo
public void unsetMetaInfo() -
isSetMetaInfo
public boolean isSetMetaInfo()Returns true if field metaInfo is set (has been assigned a value) and false otherwise -
setMetaInfoIsSet
public void setMetaInfoIsSet(boolean value) -
getStartedTime
public long getStartedTime() -
setStartedTime
-
unsetStartedTime
public void unsetStartedTime() -
isSetStartedTime
public boolean isSetStartedTime()Returns true if field startedTime is set (has been assigned a value) and false otherwise -
setStartedTimeIsSet
public void setStartedTimeIsSet(boolean value) -
getLastHeartbeatTime
public long getLastHeartbeatTime() -
setLastHeartbeatTime
-
unsetLastHeartbeatTime
public void unsetLastHeartbeatTime() -
isSetLastHeartbeatTime
public boolean isSetLastHeartbeatTime()Returns true if field lastHeartbeatTime is set (has been assigned a value) and false otherwise -
setLastHeartbeatTimeIsSet
public void setLastHeartbeatTimeIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<TxnInfo>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TxnInfo,TxnInfo._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
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-