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, TypeProvider types, TableStatsProvider tableStatsProvider)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionContext(StatsProvider statsProvider, Lookup lookup, Session session, TypeProvider types, TableStatsProvider tableStatsProvider) 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.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.types()Returns the value of thetypesrecord component.
-
Constructor Details
-
Context
public Context(StatsProvider statsProvider, Lookup lookup, Session session, TypeProvider types, TableStatsProvider tableStatsProvider) Creates an instance of aContextrecord class.- Parameters:
statsProvider- the value for thestatsProviderrecord componentlookup- the value for thelookuprecord componentsession- the value for thesessionrecord componenttypes- the value for thetypesrecord componenttableStatsProvider- the value for thetableStatsProviderrecord 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
-
types
Returns the value of thetypesrecord component.- Returns:
- the value of the
typesrecord component
-
tableStatsProvider
Returns the value of thetableStatsProviderrecord component.- Returns:
- the value of the
tableStatsProviderrecord component
-