From 0ec4e7f73e3d6ed68e26d12f1de95b24b7399226 Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Fri, 1 Aug 2014 11:57:19 +0200 Subject: [PATCH] renaming --- arangod/Aql/Query.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/arangod/Aql/Query.cpp b/arangod/Aql/Query.cpp index e17b4018f7..8ac95e1173 100644 --- a/arangod/Aql/Query.cpp +++ b/arangod/Aql/Query.cpp @@ -29,6 +29,7 @@ #include "Aql/Query.h" #include "Aql/ExecutionBlock.h" +#include "Aql/ExecutionEngine.h" #include "Aql/ExecutionPlan.h" #include "Aql/Parser.h" #include "Aql/V8Executor.h" @@ -175,25 +176,22 @@ QueryResult Query::execute () { auto plan = ExecutionPlan::instanciateFromAst(parser.ast()); try { - auto exec = ExecutionBlock::instanciatePlan(plan); + auto engine = ExecutionEngine::instanciateFromPlan(plan->root()); try { - exec->staticAnalysis(); - - exec->initialize(); - exec->execute(); + auto root = engine->root(); + root->execute(); AqlItemBlock* value; - while (nullptr != (value = exec->getOne())) { + while (nullptr != (value = root->getOne())) { std::cout << value->getValue(0, 0)->toString() << std::endl; delete value; } - exec->shutdown(); - delete exec; + delete engine; } catch (...) { - delete exec; + delete engine; delete plan; // TODO: convert exception code return QueryResult(TRI_ERROR_INTERNAL);