18 using System.Collections.Generic;
24 namespace Deveel.Data.Sql.Statements {
27 : this(queryExpression, null) {
31 if (queryExpression == null)
32 throw new ArgumentNullException(
"queryExpression");
34 QueryExpression = queryExpression;
40 public IEnumerable<SortColumn> OrderBy {
get; set; }
45 var queryPlan = context.
Query.
Context.QueryPlanner().PlanQuery(
new QueryInfo(context, QueryExpression, OrderBy, Limit));
54 QueryPlan = queryPlan;
64 data.
SetValue(
"QueryPlan", QueryPlan);
68 var result = QueryPlan.Evaluate(context.
Request);
SelectStatement(SqlQueryExpression queryExpression, IEnumerable< SortColumn > orderBy)
void SetValue(string key, Type type, object value)
SelectStatement(SqlQueryExpression queryExpression)
A node element of a query plan tree. /summary>
Represents the foundation class of SQL statements to be executed.
Prepared(ObjectData data)
void SetResult(ITable result)
object GetValue(string key)
IStatement Prepare(IRequest request)
override void ExecuteStatement(ExecutionContext context)
Prepared(IQueryPlanNode queryPlan)
override void GetData(SerializeData data)
new IQueryContext Context