NebulaStream  0.6.213
NebulaStream is a data and application management framework for the internet of things
NES::QueryCompilation::QueryCompilationResult Class Reference

Provides the query compilation results. Query compilation can succeed, in this case the result contains a ExecutableQueryPlan pointer. If query compilation fails, the result contains the error and hasError() return true. More...

#include <QueryCompilationResult.hpp>

Public Member Functions

Runtime::Execution::ExecutableQueryPlanPtr getExecutableQueryPlan ()
 Returns the query execution plan if hasError() == false. More...
 
uint64_t getCompilationTime () const
 Returns the compilation time. More...
 
bool hasError ()
 Indicates if the query compilation succeeded. More...
 
std::exception_ptr getError ()
 Returns the exception. More...
 

Static Public Member Functions

static QueryCompilationResultPtr create (Runtime::Execution::ExecutableQueryPlanPtr qep, Timer<> &&timer)
 
static QueryCompilationResultPtr create (std::exception_ptr exception)
 

Detailed Description

Provides the query compilation results. Query compilation can succeed, in this case the result contains a ExecutableQueryPlan pointer. If query compilation fails, the result contains the error and hasError() return true.

Member Function Documentation

◆ create() [1/2]

QueryCompilationResultPtr NES::QueryCompilation::QueryCompilationResult::create ( Runtime::Execution::ExecutableQueryPlanPtr  qep,
Timer<> &&  timer 
)
static

References backward::details::move().

Referenced by NES::QueryCompilation::SampleCPPCodeGenerator::compileQuery().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create() [2/2]

QueryCompilationResultPtr NES::QueryCompilation::QueryCompilationResult::create ( std::exception_ptr  exception)
static

References backward::details::move().

Here is the call graph for this function:

◆ getCompilationTime()

uint64_t NES::QueryCompilation::QueryCompilationResult::getCompilationTime ( ) const

Returns the compilation time.

Returns
compilation time

◆ getError()

std::exception_ptr NES::QueryCompilation::QueryCompilationResult::getError ( )

Returns the exception.

Returns
std::exception_ptr

◆ getExecutableQueryPlan()

Runtime::Execution::ExecutableQueryPlanPtr NES::QueryCompilation::QueryCompilationResult::getExecutableQueryPlan ( )

Returns the query execution plan if hasError() == false.

Exceptions
QueryCompilationExceptionif hasError() == true.
Returns
NewExecutableQueryPlanPtr

References hasError().

Here is the call graph for this function:

◆ hasError()

bool NES::QueryCompilation::QueryCompilationResult::hasError ( )

Indicates if the query compilation succeeded.

Returns
true if the request has an error

Referenced by getExecutableQueryPlan().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: