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, SymbolAllocator symbolAllocator, PlanNodeIdAllocator idAllocator, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector, TableStatsProvider tableStatsProvider, RuntimeInfoProvider runtimeInfoProvider) extends Record
  • Constructor Details

    • Context

      public Context(Session session, SymbolAllocator symbolAllocator, PlanNodeIdAllocator idAllocator, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector, TableStatsProvider tableStatsProvider, RuntimeInfoProvider runtimeInfoProvider)
      Creates an instance of a Context record class.
      Parameters:
      session - the value for the session record component
      symbolAllocator - the value for the symbolAllocator record component
      idAllocator - the value for the idAllocator record component
      warningCollector - the value for the warningCollector record component
      planOptimizersStatsCollector - the value for the planOptimizersStatsCollector record component
      tableStatsProvider - the value for the tableStatsProvider record component
      runtimeInfoProvider - the value for the runtimeInfoProvider record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • session

      public Session session()
      Returns the value of the session record component.
      Returns:
      the value of the session record component
    • symbolAllocator

      public SymbolAllocator symbolAllocator()
      Returns the value of the symbolAllocator record component.
      Returns:
      the value of the symbolAllocator record component
    • idAllocator

      public PlanNodeIdAllocator idAllocator()
      Returns the value of the idAllocator record component.
      Returns:
      the value of the idAllocator record component
    • warningCollector

      public WarningCollector warningCollector()
      Returns the value of the warningCollector record component.
      Returns:
      the value of the warningCollector record component
    • planOptimizersStatsCollector

      public PlanOptimizersStatsCollector planOptimizersStatsCollector()
      Returns the value of the planOptimizersStatsCollector record component.
      Returns:
      the value of the planOptimizersStatsCollector record component
    • tableStatsProvider

      public TableStatsProvider tableStatsProvider()
      Returns the value of the tableStatsProvider record component.
      Returns:
      the value of the tableStatsProvider record component
    • runtimeInfoProvider

      public RuntimeInfoProvider runtimeInfoProvider()
      Returns the value of the runtimeInfoProvider record component.
      Returns:
      the value of the runtimeInfoProvider record component