Package io.trino.server
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 Summary
ConstructorsConstructorDescriptionResultQueryInfo(QueryInfo queryInfo) 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 aResultQueryInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddedPreparedStatementsrecord component.booleanReturns the value of theclearTransactionIdrecord component.Returns the value of thedeallocatedPreparedStatementsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorCoderecord component.Returns the value of thefailureInforecord component.booleanReturns the value of thefinalQueryInforecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoutputStagerecord component.queryId()Returns the value of thequeryIdrecord component.Returns the value of thequeryStatsrecord component.booleanReturns the value of theresetAuthorizationUserrecord component.Returns the value of theresetSessionPropertiesrecord component.booleanReturns the value of thescheduledrecord component.Returns the value of thesetAuthorizationUserrecord component.Returns the value of thesetCatalogrecord component.setPath()Returns the value of thesetPathrecord component.setRoles()Returns the value of thesetRolesrecord component.Returns the value of thesetSchemarecord component.Returns the value of thesetSessionPropertiesrecord component.Returns the value of thestartedTransactionIdrecord component.state()Returns the value of thestaterecord component.toString()Returns a string representation of this record class.Returns the value of theupdateTyperecord component.warnings()Returns the value of thewarningsrecord component.
-
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 aResultQueryInforecord class.- Parameters:
queryId- the value for thequeryIdrecord componentstate- the value for thestaterecord componentscheduled- the value for thescheduledrecord componentupdateType- the value for theupdateTyperecord componentqueryStats- the value for thequeryStatsrecord componenterrorCode- the value for theerrorCoderecord componentoutputStage- the value for theoutputStagerecord componentfinalQueryInfo- the value for thefinalQueryInforecord componentfailureInfo- the value for thefailureInforecord componentsetCatalog- the value for thesetCatalogrecord componentsetSchema- the value for thesetSchemarecord componentsetPath- the value for thesetPathrecord componentsetAuthorizationUser- the value for thesetAuthorizationUserrecord componentresetAuthorizationUser- the value for theresetAuthorizationUserrecord componentsetSessionProperties- the value for thesetSessionPropertiesrecord componentresetSessionProperties- the value for theresetSessionPropertiesrecord componentsetRoles- the value for thesetRolesrecord componentaddedPreparedStatements- the value for theaddedPreparedStatementsrecord componentdeallocatedPreparedStatements- the value for thedeallocatedPreparedStatementsrecord componentstartedTransactionId- the value for thestartedTransactionIdrecord componentclearTransactionId- the value for theclearTransactionIdrecord componentwarnings- the value for thewarningsrecord component
-
ResultQueryInfo
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
queryId
Returns the value of thequeryIdrecord component.- Returns:
- the value of the
queryIdrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
scheduled
public boolean scheduled()Returns the value of thescheduledrecord component.- Returns:
- the value of the
scheduledrecord component
-
updateType
Returns the value of theupdateTyperecord component.- Returns:
- the value of the
updateTyperecord component
-
queryStats
Returns the value of thequeryStatsrecord component.- Returns:
- the value of the
queryStatsrecord component
-
errorCode
Returns the value of theerrorCoderecord component.- Returns:
- the value of the
errorCoderecord component
-
outputStage
Returns the value of theoutputStagerecord component.- Returns:
- the value of the
outputStagerecord component
-
finalQueryInfo
public boolean finalQueryInfo()Returns the value of thefinalQueryInforecord component.- Returns:
- the value of the
finalQueryInforecord component
-
failureInfo
Returns the value of thefailureInforecord component.- Returns:
- the value of the
failureInforecord component
-
setCatalog
Returns the value of thesetCatalogrecord component.- Returns:
- the value of the
setCatalogrecord component
-
setSchema
Returns the value of thesetSchemarecord component.- Returns:
- the value of the
setSchemarecord component
-
setPath
Returns the value of thesetPathrecord component.- Returns:
- the value of the
setPathrecord component
-
setAuthorizationUser
Returns the value of thesetAuthorizationUserrecord component.- Returns:
- the value of the
setAuthorizationUserrecord component
-
resetAuthorizationUser
public boolean resetAuthorizationUser()Returns the value of theresetAuthorizationUserrecord component.- Returns:
- the value of the
resetAuthorizationUserrecord component
-
setSessionProperties
Returns the value of thesetSessionPropertiesrecord component.- Returns:
- the value of the
setSessionPropertiesrecord component
-
resetSessionProperties
Returns the value of theresetSessionPropertiesrecord component.- Returns:
- the value of the
resetSessionPropertiesrecord component
-
setRoles
Returns the value of thesetRolesrecord component.- Returns:
- the value of the
setRolesrecord component
-
addedPreparedStatements
Returns the value of theaddedPreparedStatementsrecord component.- Returns:
- the value of the
addedPreparedStatementsrecord component
-
deallocatedPreparedStatements
Returns the value of thedeallocatedPreparedStatementsrecord component.- Returns:
- the value of the
deallocatedPreparedStatementsrecord component
-
startedTransactionId
Returns the value of thestartedTransactionIdrecord component.- Returns:
- the value of the
startedTransactionIdrecord component
-
clearTransactionId
public boolean clearTransactionId()Returns the value of theclearTransactionIdrecord component.- Returns:
- the value of the
clearTransactionIdrecord component
-
warnings
Returns the value of thewarningsrecord component.- Returns:
- the value of the
warningsrecord component
-