Record Class PlanOptimizer.Context
java.lang.Object
java.lang.Record
io.trino.sql.planner.optimizations.PlanOptimizer.Context
- Enclosing interface:
PlanOptimizer
public static record PlanOptimizer.Context(Session session, TypeProvider types, SymbolAllocator symbolAllocator, PlanNodeIdAllocator idAllocator, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector, TableStatsProvider tableStatsProvider)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionContext(Session session, TypeProvider types, SymbolAllocator symbolAllocator, PlanNodeIdAllocator idAllocator, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector, 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.Returns the value of theidAllocatorrecord component.Returns the value of theplanOptimizersStatsCollectorrecord component.session()Returns the value of thesessionrecord component.Returns the value of thesymbolAllocatorrecord component.Returns the value of thetableStatsProviderrecord component.final StringtoString()Returns a string representation of this record class.types()Returns the value of thetypesrecord component.Returns the value of thewarningCollectorrecord component.
-
Constructor Details
-
Context
public Context(Session session, TypeProvider types, SymbolAllocator symbolAllocator, PlanNodeIdAllocator idAllocator, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector, TableStatsProvider tableStatsProvider) Creates an instance of aContextrecord class.- Parameters:
session- the value for thesessionrecord componenttypes- the value for thetypesrecord componentsymbolAllocator- the value for thesymbolAllocatorrecord componentidAllocator- the value for theidAllocatorrecord componentwarningCollector- the value for thewarningCollectorrecord componentplanOptimizersStatsCollector- the value for theplanOptimizersStatsCollectorrecord 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). -
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
-
symbolAllocator
Returns the value of thesymbolAllocatorrecord component.- Returns:
- the value of the
symbolAllocatorrecord component
-
idAllocator
Returns the value of theidAllocatorrecord component.- Returns:
- the value of the
idAllocatorrecord component
-
warningCollector
Returns the value of thewarningCollectorrecord component.- Returns:
- the value of the
warningCollectorrecord component
-
planOptimizersStatsCollector
Returns the value of theplanOptimizersStatsCollectorrecord component.- Returns:
- the value of the
planOptimizersStatsCollectorrecord component
-
tableStatsProvider
Returns the value of thetableStatsProviderrecord component.- Returns:
- the value of the
tableStatsProviderrecord component
-