Package io.trino.spi.eventlistener
Record Class QueryPlanOptimizerStatistics
java.lang.Object
java.lang.Record
io.trino.spi.eventlistener.QueryPlanOptimizerStatistics
public record QueryPlanOptimizerStatistics(String rule, long invocations, long applied, long totalTime, long failures)
extends Record
This class is JSON serializable for convenience and serialization compatibility is not guaranteed across versions.
-
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
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 '=='. -
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
-