Class ShowLocksResponseElement

java.lang.Object
io.trino.hive.thrift.metastore.ShowLocksResponseElement
All Implemented Interfaces:
Serializable, Cloneable, Comparable<ShowLocksResponseElement>, org.apache.thrift.TBase<ShowLocksResponseElement,ShowLocksResponseElement._Fields>, org.apache.thrift.TSerializable

@Generated("Autogenerated by Thrift Compiler (0.17.0)") public class ShowLocksResponseElement extends Object implements org.apache.thrift.TBase<ShowLocksResponseElement,ShowLocksResponseElement._Fields>, Serializable, Cloneable, Comparable<ShowLocksResponseElement>
See Also:
  • Field Details

  • Constructor Details

    • ShowLocksResponseElement

      public ShowLocksResponseElement()
    • ShowLocksResponseElement

      public ShowLocksResponseElement(long lockid, String dbname, LockState state, LockType type, long lastheartbeat, String user, String hostname)
    • ShowLocksResponseElement

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

    • deepCopy

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

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

      public long getLockid()
    • setLockid

      public ShowLocksResponseElement setLockid(long lockid)
    • unsetLockid

      public void unsetLockid()
    • isSetLockid

      public boolean isSetLockid()
      Returns true if field lockid is set (has been assigned a value) and false otherwise
    • setLockidIsSet

      public void setLockidIsSet(boolean value)
    • getDbname

      public String getDbname()
    • setDbname

      public ShowLocksResponseElement setDbname(String dbname)
    • unsetDbname

      public void unsetDbname()
    • isSetDbname

      public boolean isSetDbname()
      Returns true if field dbname is set (has been assigned a value) and false otherwise
    • setDbnameIsSet

      public void setDbnameIsSet(boolean value)
    • getTablename

      public String getTablename()
    • setTablename

      public ShowLocksResponseElement setTablename(String tablename)
    • unsetTablename

      public void unsetTablename()
    • isSetTablename

      public boolean isSetTablename()
      Returns true if field tablename is set (has been assigned a value) and false otherwise
    • setTablenameIsSet

      public void setTablenameIsSet(boolean value)
    • getPartname

      public String getPartname()
    • setPartname

      public ShowLocksResponseElement setPartname(String partname)
    • unsetPartname

      public void unsetPartname()
    • isSetPartname

      public boolean isSetPartname()
      Returns true if field partname is set (has been assigned a value) and false otherwise
    • setPartnameIsSet

      public void setPartnameIsSet(boolean value)
    • getState

      public LockState getState()
      See Also:
    • setState

      public ShowLocksResponseElement setState(LockState 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)
    • getType

      public LockType getType()
      See Also:
    • setType

      public ShowLocksResponseElement setType(LockType type)
      See Also:
    • 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)
    • getTxnid

      public long getTxnid()
    • setTxnid

      public ShowLocksResponseElement setTxnid(long txnid)
    • unsetTxnid

      public void unsetTxnid()
    • isSetTxnid

      public boolean isSetTxnid()
      Returns true if field txnid is set (has been assigned a value) and false otherwise
    • setTxnidIsSet

      public void setTxnidIsSet(boolean value)
    • getLastheartbeat

      public long getLastheartbeat()
    • setLastheartbeat

      public ShowLocksResponseElement setLastheartbeat(long lastheartbeat)
    • unsetLastheartbeat

      public void unsetLastheartbeat()
    • isSetLastheartbeat

      public boolean isSetLastheartbeat()
      Returns true if field lastheartbeat is set (has been assigned a value) and false otherwise
    • setLastheartbeatIsSet

      public void setLastheartbeatIsSet(boolean value)
    • getAcquiredat

      public long getAcquiredat()
    • setAcquiredat

      public ShowLocksResponseElement setAcquiredat(long acquiredat)
    • unsetAcquiredat

      public void unsetAcquiredat()
    • isSetAcquiredat

      public boolean isSetAcquiredat()
      Returns true if field acquiredat is set (has been assigned a value) and false otherwise
    • setAcquiredatIsSet

      public void setAcquiredatIsSet(boolean value)
    • getUser

      public String getUser()
    • setUser

      public ShowLocksResponseElement 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 ShowLocksResponseElement 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)
    • getHeartbeatCount

      public int getHeartbeatCount()
    • setHeartbeatCount

      public ShowLocksResponseElement 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)
    • getAgentInfo

      public String getAgentInfo()
    • setAgentInfo

      public ShowLocksResponseElement 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)
    • getBlockedByExtId

      public long getBlockedByExtId()
    • setBlockedByExtId

      public ShowLocksResponseElement setBlockedByExtId(long blockedByExtId)
    • unsetBlockedByExtId

      public void unsetBlockedByExtId()
    • isSetBlockedByExtId

      public boolean isSetBlockedByExtId()
      Returns true if field blockedByExtId is set (has been assigned a value) and false otherwise
    • setBlockedByExtIdIsSet

      public void setBlockedByExtIdIsSet(boolean value)
    • getBlockedByIntId

      public long getBlockedByIntId()
    • setBlockedByIntId

      public ShowLocksResponseElement setBlockedByIntId(long blockedByIntId)
    • unsetBlockedByIntId

      public void unsetBlockedByIntId()
    • isSetBlockedByIntId

      public boolean isSetBlockedByIntId()
      Returns true if field blockedByIntId is set (has been assigned a value) and false otherwise
    • setBlockedByIntIdIsSet

      public void setBlockedByIntIdIsSet(boolean value)
    • getLockIdInternal

      public long getLockIdInternal()
    • setLockIdInternal

      public ShowLocksResponseElement setLockIdInternal(long lockIdInternal)
    • unsetLockIdInternal

      public void unsetLockIdInternal()
    • isSetLockIdInternal

      public boolean isSetLockIdInternal()
      Returns true if field lockIdInternal is set (has been assigned a value) and false otherwise
    • setLockIdInternalIsSet

      public void setLockIdInternalIsSet(boolean value)
    • setFieldValue

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

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

      public boolean isSet(ShowLocksResponseElement._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<ShowLocksResponseElement,ShowLocksResponseElement._Fields>
    • equals

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

      public boolean equals(ShowLocksResponseElement that)
    • hashCode

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

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

      public ShowLocksResponseElement._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<ShowLocksResponseElement,ShowLocksResponseElement._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