java.lang.Object
org.elasticsearch.xpack.esql.planner.premapper.PreMapper

public class PreMapper extends Object
The class is responsible for invoking any premapping steps that need to be applied to the logical plan, before this is being mapped to a physical one.
  • Constructor Details

  • Method Details

    • preMapper

      public void preMapper(Versioned<LogicalPlan> plan, ActionListener<LogicalPlan> listener)
      Invokes any premapping steps that need to be applied to the logical plan, before this is being mapped to a physical one.

      The plan is passed as a Versioned so that the minimum transport version of the cluster is available here, even though the current query rewrites do not need it. Should the pre-mapper's query rewrites ever be refactored in a way that is not backwards compatible, the minimum version can be used to gate the new behavior. See Versioned for the broader rationale.