Package com.arcadedb.query.sql.executor
Class SelectExecutionPlanner
- java.lang.Object
-
- com.arcadedb.query.sql.executor.SelectExecutionPlanner
-
public class SelectExecutionPlanner extends Object
- Author:
- Luigi Dell'Aquila (luigi.dellaquila-(at)-gmail.com)
-
-
Constructor Summary
Constructors Constructor Description SelectExecutionPlanner(SelectStatement oSelectStatement)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InternalExecutionPlan
createExecutionPlan(CommandContext ctx, boolean enableProfiling)
static void
handleOrderBy(SelectExecutionPlan plan, QueryPlanningInfo info, CommandContext ctx, boolean profilingEnabled)
static void
handleProjectionsBlock(SelectExecutionPlan result, QueryPlanningInfo info, CommandContext ctx, boolean enableProfiling)
static void
handleUnwind(SelectExecutionPlan result, QueryPlanningInfo info, CommandContext ctx, boolean profilingEnabled)
protected static void
optimizeQuery(QueryPlanningInfo info)
protected static Projection
translateDistinct(Projection projection)
for backward compatibility, translate "distinct(foo)" to "DISTINCT foo".
-
-
-
Constructor Detail
-
SelectExecutionPlanner
public SelectExecutionPlanner(SelectStatement oSelectStatement)
-
-
Method Detail
-
createExecutionPlan
public InternalExecutionPlan createExecutionPlan(CommandContext ctx, boolean enableProfiling)
-
handleProjectionsBlock
public static void handleProjectionsBlock(SelectExecutionPlan result, QueryPlanningInfo info, CommandContext ctx, boolean enableProfiling)
-
translateDistinct
protected static Projection translateDistinct(Projection projection)
for backward compatibility, translate "distinct(foo)" to "DISTINCT foo". This method modifies the projection itself.- Parameters:
projection
- the projection
-
handleUnwind
public static void handleUnwind(SelectExecutionPlan result, QueryPlanningInfo info, CommandContext ctx, boolean profilingEnabled)
-
optimizeQuery
protected static void optimizeQuery(QueryPlanningInfo info)
-
handleOrderBy
public static void handleOrderBy(SelectExecutionPlan plan, QueryPlanningInfo info, CommandContext ctx, boolean profilingEnabled)
-
-