Package io.trino.cost
Record Class StatsCalculator.Context
java.lang.Object
java.lang.Record
io.trino.cost.StatsCalculator.Context
- Enclosing interface:
StatsCalculator
public static record StatsCalculator.Context(StatsProvider statsProvider, Lookup lookup, Session session, TableStatsProvider tableStatsProvider, RuntimeInfoProvider runtimeInfoProvider)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionContext(StatsProvider statsProvider, Lookup lookup, Session session, TableStatsProvider tableStatsProvider, RuntimeInfoProvider runtimeInfoProvider) Creates an instance of aContextrecord 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.lookup()Returns the value of thelookuprecord component.Returns the value of theruntimeInfoProviderrecord component.session()Returns the value of thesessionrecord component.Returns the value of thestatsProviderrecord component.Returns the value of thetableStatsProviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Context
public Context(StatsProvider statsProvider, Lookup lookup, Session session, TableStatsProvider tableStatsProvider, RuntimeInfoProvider runtimeInfoProvider) Creates an instance of aContextrecord class.- Parameters:
statsProvider- the value for thestatsProviderrecord componentlookup- the value for thelookuprecord componentsession- the value for thesessionrecord componenttableStatsProvider- the value for thetableStatsProviderrecord componentruntimeInfoProvider- the value for theruntimeInfoProviderrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
statsProvider
Returns the value of thestatsProviderrecord component.- Returns:
- the value of the
statsProviderrecord component
-
lookup
Returns the value of thelookuprecord component.- Returns:
- the value of the
lookuprecord component
-
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
tableStatsProvider
Returns the value of thetableStatsProviderrecord component.- Returns:
- the value of the
tableStatsProviderrecord component
-
runtimeInfoProvider
Returns the value of theruntimeInfoProviderrecord component.- Returns:
- the value of the
runtimeInfoProviderrecord component
-