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

#include <QueryParsingService.hpp>

Public Member Functions

 QueryParsingService (std::shared_ptr< Compiler::JITCompiler > jitCompiler)
 
QueryPlanPtr createQueryFromCodeString (const std::string &queryCodeSnippet)
 this function executes the C++ code provided by the user and returns an Query Object @caution: this function will replace the source name "xyz" provided by the user with the source generated by the system and fetched from the catalog More...
 
QueryPlanPtr createPatternFromCodeString (const std::string &queryCodeSnippet)
 this function parses the declarative pattern string provided by the user and returns an Query Object @caution: this function will replace the source name "xyz" provided by the user with the source generated by the system and fetched from the catalog More...
 
SchemaPtr createSchemaFromCode (const std::string &schemaCodeSnippet)
 this function executes the code provided by the user and returns an schema Object More...
 

Static Public Member Functions

static std::shared_ptr< QueryParsingServicecreate (std::shared_ptr< Compiler::JITCompiler >)
 

Constructor & Destructor Documentation

◆ QueryParsingService()

NES::QueryParsingService::QueryParsingService ( std::shared_ptr< Compiler::JITCompiler jitCompiler)
explicit

Member Function Documentation

◆ create()

std::shared_ptr< QueryParsingService > NES::QueryParsingService::create ( std::shared_ptr< Compiler::JITCompiler jitCompiler)
static

Referenced by NES::NesCoordinator::NesCoordinator(), NES::ExpressionNodeTest::SetUp(), NES::LogicalExpressionTest::SetUp(), NES::SemanticQueryValidationTest::SetUp(), NES::SyntacticQueryValidationTest::SetUp(), and QueryCatalogTest::SetUp().

Here is the caller graph for this function:

◆ createPatternFromCodeString()

QueryPlanPtr NES::QueryParsingService::createPatternFromCodeString ( const std::string &  queryCodeSnippet)

this function parses the declarative pattern string provided by the user and returns an Query Object @caution: this function will replace the source name "xyz" provided by the user with the source generated by the system and fetched from the catalog

Parameters
queryas a string
Returns
Smart pointer to InputQuery object of the query

References NES::Parsers::NesCEPQueryPlanCreator::getQueryPlan(), NES_DEBUG, NES_THROW_RUNTIME_ERROR, and NES::Parsers::NesCEPParser::query().

Here is the call graph for this function:

◆ createQueryFromCodeString()

QueryPlanPtr NES::QueryParsingService::createQueryFromCodeString ( const std::string &  queryCodeSnippet)

this function executes the C++ code provided by the user and returns an Query Object @caution: this function will replace the source name "xyz" provided by the user with the source generated by the system and fetched from the catalog

Parameters
queryas a string
Returns
Smart pointer to InputQuery object of the query

References NES::Compiler::CPP, NES::Compiler::CompilationRequest::create(), NES::Query::getQueryPlan(), backward::details::move(), NES_DEBUG, NES_ERROR, and NES::Util::replaceFirst().

Here is the call graph for this function:

◆ createSchemaFromCode()

SchemaPtr NES::QueryParsingService::createSchemaFromCode ( const std::string &  schemaCodeSnippet)

this function executes the code provided by the user and returns an schema Object

Parameters
queryas a string
Returns
Smart pointer to InputQuery object of the query

References NES::Compiler::CPP, NES::Compiler::CompilationRequest::create(), backward::details::move(), NES_DEBUG, and NES_ERROR.

Here is the call graph for this function:

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