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:
  • Field Details

    • metaDataMap

      public static final Map<TxnInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

    • TxnInfo

      public TxnInfo()
    • TxnInfo

      public TxnInfo(long id, TxnState state, String user, String hostname)
    • TxnInfo

      public TxnInfo(TxnInfo other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public TxnInfo deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
    • getId

      public long getId()
    • setId

      public TxnInfo setId(long id)
    • 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

      public TxnState getState()
      See Also:
    • setState

      public TxnInfo setState(TxnState state)
      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

      public String getUser()
    • setUser

      public TxnInfo 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)
    • getHostname

      public String getHostname()
    • setHostname

      public TxnInfo setHostname(String hostname)
    • 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

      public String getAgentInfo()
    • setAgentInfo

      public TxnInfo setAgentInfo(String agentInfo)
    • 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

      public TxnInfo setHeartbeatCount(int heartbeatCount)
    • 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

      public String getMetaInfo()
    • setMetaInfo

      public TxnInfo setMetaInfo(String metaInfo)
    • 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

      public TxnInfo setStartedTime(long startedTime)
    • 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

      public TxnInfo setLastHeartbeatTime(long lastHeartbeatTime)
    • 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

      public void setFieldValue(TxnInfo._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
    • getFieldValue

      public Object getFieldValue(TxnInfo._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
    • isSet

      public boolean isSet(TxnInfo._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(TxnInfo that)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(TxnInfo other)
      Specified by:
      compareTo in interface Comparable<TxnInfo>
    • fieldForId

      public TxnInfo._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
    • read

      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.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:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException