Class RelOptQuery

java.lang.Object
org.apache.calcite.plan.RelOptQuery

public class RelOptQuery extends Object
A RelOptQuery represents a set of relational expressions which derive from the same select statement.
  • Field Details

    • CORREL_PREFIX

      public static final String CORREL_PREFIX
      Prefix to the name of correlating variables.
      See Also:
  • Constructor Details

    • RelOptQuery

      @Deprecated public RelOptQuery(RelOptPlanner planner)
      Deprecated.
      Creates a query.
      Parameters:
      planner - Planner
  • Method Details

    • getCorrelOrdinal

      @Deprecated public static int getCorrelOrdinal(String correlName)
      Deprecated.
      Converts a correlating variable name into an ordinal, unique within the query.
      Parameters:
      correlName - Name of correlating variable
      Returns:
      Correlating variable ordinal
    • createCluster

      @Deprecated public RelOptCluster createCluster(RelDataTypeFactory typeFactory, RexBuilder rexBuilder)
      Deprecated.
      Creates a cluster.
      Parameters:
      typeFactory - Type factory
      rexBuilder - Expression builder
      Returns:
      New cluster
    • createCorrel

      @Deprecated public String createCorrel()
      Constructs a new name for a correlating variable. It is unique within the whole query.
    • lookupCorrel

      public @Nullable RelNode lookupCorrel(String name)
      Returns the relational expression which populates a correlating variable.
    • mapCorrel

      public void mapCorrel(String name, RelNode rel)
      Maps a correlating variable to a RelNode.