Record Class LocalExecutionPlanner.LocalExecutionPlannerContext

java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.LocalExecutionPlannerContext
Enclosing class:
LocalExecutionPlanner

public static record LocalExecutionPlanner.LocalExecutionPlannerContext(List<org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.DriverFactory> driverFactories, Holder<org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.DriverParallelism> driverParallelism, QueryPragmas queryPragmas, BigArrays bigArrays, BlockFactory blockFactory, FoldContext foldCtx, Settings settings) extends Record
Context object used while generating a local plan. Currently only collects the driver factories as well as maintains information how many driver instances should be created for a given driver.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LocalExecutionPlannerContext(List<org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.DriverFactory> driverFactories, Holder<org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.DriverParallelism> driverParallelism, QueryPragmas queryPragmas, BigArrays bigArrays, BlockFactory blockFactory, FoldContext foldCtx, Settings settings)
    Creates an instance of a LocalExecutionPlannerContext record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the bigArrays record component.
    Returns the value of the blockFactory record component.
    List<org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.DriverFactory>
    Returns the value of the driverFactories record component.
    Holder<org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.DriverParallelism>
    Returns the value of the driverParallelism record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the foldCtx record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the queryPragmas record component.
    Returns the value of the settings record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LocalExecutionPlannerContext

      public LocalExecutionPlannerContext(List<org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.DriverFactory> driverFactories, Holder<org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.DriverParallelism> driverParallelism, QueryPragmas queryPragmas, BigArrays bigArrays, BlockFactory blockFactory, FoldContext foldCtx, Settings settings)
      Creates an instance of a LocalExecutionPlannerContext record class.
      Parameters:
      driverFactories - the value for the driverFactories record component
      driverParallelism - the value for the driverParallelism record component
      queryPragmas - the value for the queryPragmas record component
      bigArrays - the value for the bigArrays record component
      blockFactory - the value for the blockFactory record component
      foldCtx - the value for the foldCtx record component
      settings - the value for the settings 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.
    • driverFactories

      public List<org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.DriverFactory> driverFactories()
      Returns the value of the driverFactories record component.
      Returns:
      the value of the driverFactories record component
    • driverParallelism

      public Holder<org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.DriverParallelism> driverParallelism()
      Returns the value of the driverParallelism record component.
      Returns:
      the value of the driverParallelism record component
    • queryPragmas

      public QueryPragmas queryPragmas()
      Returns the value of the queryPragmas record component.
      Returns:
      the value of the queryPragmas record component
    • bigArrays

      public BigArrays bigArrays()
      Returns the value of the bigArrays record component.
      Returns:
      the value of the bigArrays record component
    • blockFactory

      public BlockFactory blockFactory()
      Returns the value of the blockFactory record component.
      Returns:
      the value of the blockFactory record component
    • foldCtx

      public FoldContext foldCtx()
      Returns the value of the foldCtx record component.
      Returns:
      the value of the foldCtx record component
    • settings

      public Settings settings()
      Returns the value of the settings record component.
      Returns:
      the value of the settings record component