Record Class QueryPlanOptimizerStatistics
java.lang.Object
java.lang.Record
io.trino.spi.eventlistener.QueryPlanOptimizerStatistics
-
Constructor Summary
ConstructorsConstructorDescriptionQueryPlanOptimizerStatistics(String rule, long invocations, long applied, long totalTime, long failures) Creates an instance of aQueryPlanOptimizerStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongapplied()Returns the value of theappliedrecord component.final booleanIndicates whether some other object is "equal to" this one.longfailures()Returns the value of thefailuresrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theinvocationsrecord component.rule()Returns the value of therulerecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalTimerecord component.
-
Constructor Details
-
QueryPlanOptimizerStatistics
public QueryPlanOptimizerStatistics(String rule, long invocations, long applied, long totalTime, long failures) Creates an instance of aQueryPlanOptimizerStatisticsrecord class.- Parameters:
rule- the value for therulerecord componentinvocations- the value for theinvocationsrecord componentapplied- the value for theappliedrecord componenttotalTime- the value for thetotalTimerecord componentfailures- the value for thefailuresrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
rule
Returns the value of therulerecord component.- Returns:
- the value of the
rulerecord component
-
invocations
public long invocations()Returns the value of theinvocationsrecord component.- Returns:
- the value of the
invocationsrecord component
-
applied
public long applied()Returns the value of theappliedrecord component.- Returns:
- the value of the
appliedrecord component
-
totalTime
public long totalTime()Returns the value of thetotalTimerecord component.- Returns:
- the value of the
totalTimerecord component
-
failures
public long failures()Returns the value of thefailuresrecord component.- Returns:
- the value of the
failuresrecord component
-