JODA
0.13.1 (59b41972)
JSON On-Demand Analysis
|
#include <QueryPlan.h>
Public Member Functions | |
QueryPlan (const std::shared_ptr< joda::query::Query > &q) | |
unsigned long | executeQuery (Benchmark *bench=nullptr) |
ExecutionStats | getStats () const |
bool | hasToParse () const |
Protected Member Functions | |
void | addGenericBenchmarkInformation (Benchmark *bench=nullptr) const |
std::unique_ptr< JSONContainer > | aggregate (std::shared_ptr< joda::query::Query > &q, joda::query::AggregatorQueue::queue_t *queue, Benchmark *benchmark) |
Protected Attributes | |
unsigned long | resultID = 0 |
unsigned long | maxThreads = 0 |
bool | skip = false |
std::shared_ptr< JSONStorage > | load |
std::shared_ptr< joda::query::Query > | q |
std::unique_ptr< JsonContainerRefQueue::queue_t > | loadQueue |
std::unique_ptr< JsonContainerQueue::queue_t > | storeQueue |
std::unique_ptr< joda::query::AggregatorQueue::queue_t > | aggregatorQueue |
joda::docparsing::ReaderParser | parser |
Class responsible for analyzing and executing a query. The main logic of data destination/origin happens here.
QueryPlan::QueryPlan | ( | const std::shared_ptr< joda::query::Query > & | q | ) |
Initializes a new QueryPlan with a given query. The query is already analyzed in the constructor for data origin and destination
q | The query to execute later on |
|
protected |
|
protected |
unsigned long QueryPlan::executeQuery | ( | Benchmark * | bench = nullptr | ) |
Executes the query. The query result is stored in an collection, which will be registered at the StorageCollection as a temporary result. The ID of this result is then returned after the query completed
bench | an optional Benchmark, which is used to time the query execution. If null, no timing is performed |
ExecutionStats QueryPlan::getStats | ( | ) | const |
Returns realtime ExecutionStats for UI query-progress reports
bool QueryPlan::hasToParse | ( | ) | const |
Checks if the queryplan has to parse files from outside the system.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |