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(String description, 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, List<EsPhysicalOperationProviders.ShardContext> shardContexts) 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 Details

    • LocalExecutionPlannerContext

      public LocalExecutionPlannerContext(String description, 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, List<EsPhysicalOperationProviders.ShardContext> shardContexts)
      Creates an instance of a LocalExecutionPlannerContext record class.
      Parameters:
      description - the value for the description record component
      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
      shardContexts - the value for the shardContexts 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.
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • 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
    • shardContexts

      Returns the value of the shardContexts record component.
      Returns:
      the value of the shardContexts record component