Record Class QueryRunner.MaterializedResultWithPlan
java.lang.Object
java.lang.Record
io.trino.testing.QueryRunner.MaterializedResultWithPlan
- Enclosing interface:
QueryRunner
public static record QueryRunner.MaterializedResultWithPlan(QueryId queryId, Optional<Plan> queryPlan, MaterializedResult result)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMaterializedResultWithPlan(QueryId queryId, Optional<Plan> queryPlan, MaterializedResult result) Creates an instance of aMaterializedResultWithPlanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.queryId()Returns the value of thequeryIdrecord component.Returns the value of thequeryPlanrecord component.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MaterializedResultWithPlan
public MaterializedResultWithPlan(QueryId queryId, Optional<Plan> queryPlan, MaterializedResult result) Creates an instance of aMaterializedResultWithPlanrecord class.- Parameters:
queryId- the value for thequeryIdrecord componentqueryPlan- the value for thequeryPlanrecord componentresult- the value for theresultrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
queryId
Returns the value of thequeryIdrecord component.- Returns:
- the value of the
queryIdrecord component
-
queryPlan
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-