Record Class ResultQueryInfo

java.lang.Object
java.lang.Record
io.trino.server.ResultQueryInfo

public record ResultQueryInfo(QueryId queryId, QueryState state, boolean scheduled, String updateType, BasicQueryStats queryStats, ErrorCode errorCode, Optional<BasicStageInfo> outputStage, boolean finalQueryInfo, ExecutionFailureInfo failureInfo, Optional<String> setCatalog, Optional<String> setSchema, Optional<String> setPath, Optional<String> setAuthorizationUser, boolean resetAuthorizationUser, Map<String,String> setSessionProperties, Set<String> resetSessionProperties, Map<String,SelectedRole> setRoles, Map<String,String> addedPreparedStatements, Set<String> deallocatedPreparedStatements, Optional<TransactionId> startedTransactionId, boolean clearTransactionId, List<TrinoWarning> warnings) extends Record
  • Constructor Details

    • ResultQueryInfo

      public ResultQueryInfo(QueryId queryId, QueryState state, boolean scheduled, String updateType, BasicQueryStats queryStats, ErrorCode errorCode, Optional<BasicStageInfo> outputStage, boolean finalQueryInfo, ExecutionFailureInfo failureInfo, Optional<String> setCatalog, Optional<String> setSchema, Optional<String> setPath, Optional<String> setAuthorizationUser, boolean resetAuthorizationUser, Map<String,String> setSessionProperties, Set<String> resetSessionProperties, Map<String,SelectedRole> setRoles, Map<String,String> addedPreparedStatements, Set<String> deallocatedPreparedStatements, Optional<TransactionId> startedTransactionId, boolean clearTransactionId, List<TrinoWarning> warnings)
      Creates an instance of a ResultQueryInfo record class.
      Parameters:
      queryId - the value for the queryId record component
      state - the value for the state record component
      scheduled - the value for the scheduled record component
      updateType - the value for the updateType record component
      queryStats - the value for the queryStats record component
      errorCode - the value for the errorCode record component
      outputStage - the value for the outputStage record component
      finalQueryInfo - the value for the finalQueryInfo record component
      failureInfo - the value for the failureInfo record component
      setCatalog - the value for the setCatalog record component
      setSchema - the value for the setSchema record component
      setPath - the value for the setPath record component
      setAuthorizationUser - the value for the setAuthorizationUser record component
      resetAuthorizationUser - the value for the resetAuthorizationUser record component
      setSessionProperties - the value for the setSessionProperties record component
      resetSessionProperties - the value for the resetSessionProperties record component
      setRoles - the value for the setRoles record component
      addedPreparedStatements - the value for the addedPreparedStatements record component
      deallocatedPreparedStatements - the value for the deallocatedPreparedStatements record component
      startedTransactionId - the value for the startedTransactionId record component
      clearTransactionId - the value for the clearTransactionId record component
      warnings - the value for the warnings record component
    • ResultQueryInfo

      public ResultQueryInfo(QueryInfo queryInfo)
  • Method Details

    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • queryId

      public QueryId queryId()
      Returns the value of the queryId record component.
      Returns:
      the value of the queryId record component
    • state

      public QueryState state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • scheduled

      public boolean scheduled()
      Returns the value of the scheduled record component.
      Returns:
      the value of the scheduled record component
    • updateType

      public String updateType()
      Returns the value of the updateType record component.
      Returns:
      the value of the updateType record component
    • queryStats

      public BasicQueryStats queryStats()
      Returns the value of the queryStats record component.
      Returns:
      the value of the queryStats record component
    • errorCode

      public ErrorCode errorCode()
      Returns the value of the errorCode record component.
      Returns:
      the value of the errorCode record component
    • outputStage

      public Optional<BasicStageInfo> outputStage()
      Returns the value of the outputStage record component.
      Returns:
      the value of the outputStage record component
    • finalQueryInfo

      public boolean finalQueryInfo()
      Returns the value of the finalQueryInfo record component.
      Returns:
      the value of the finalQueryInfo record component
    • failureInfo

      public ExecutionFailureInfo failureInfo()
      Returns the value of the failureInfo record component.
      Returns:
      the value of the failureInfo record component
    • setCatalog

      public Optional<String> setCatalog()
      Returns the value of the setCatalog record component.
      Returns:
      the value of the setCatalog record component
    • setSchema

      public Optional<String> setSchema()
      Returns the value of the setSchema record component.
      Returns:
      the value of the setSchema record component
    • setPath

      public Optional<String> setPath()
      Returns the value of the setPath record component.
      Returns:
      the value of the setPath record component
    • setAuthorizationUser

      public Optional<String> setAuthorizationUser()
      Returns the value of the setAuthorizationUser record component.
      Returns:
      the value of the setAuthorizationUser record component
    • resetAuthorizationUser

      public boolean resetAuthorizationUser()
      Returns the value of the resetAuthorizationUser record component.
      Returns:
      the value of the resetAuthorizationUser record component
    • setSessionProperties

      public Map<String,String> setSessionProperties()
      Returns the value of the setSessionProperties record component.
      Returns:
      the value of the setSessionProperties record component
    • resetSessionProperties

      public Set<String> resetSessionProperties()
      Returns the value of the resetSessionProperties record component.
      Returns:
      the value of the resetSessionProperties record component
    • setRoles

      public Map<String,SelectedRole> setRoles()
      Returns the value of the setRoles record component.
      Returns:
      the value of the setRoles record component
    • addedPreparedStatements

      public Map<String,String> addedPreparedStatements()
      Returns the value of the addedPreparedStatements record component.
      Returns:
      the value of the addedPreparedStatements record component
    • deallocatedPreparedStatements

      public Set<String> deallocatedPreparedStatements()
      Returns the value of the deallocatedPreparedStatements record component.
      Returns:
      the value of the deallocatedPreparedStatements record component
    • startedTransactionId

      public Optional<TransactionId> startedTransactionId()
      Returns the value of the startedTransactionId record component.
      Returns:
      the value of the startedTransactionId record component
    • clearTransactionId

      public boolean clearTransactionId()
      Returns the value of the clearTransactionId record component.
      Returns:
      the value of the clearTransactionId record component
    • warnings

      public List<TrinoWarning> warnings()
      Returns the value of the warnings record component.
      Returns:
      the value of the warnings record component