NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
#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< QueryParsingService > | create (std::shared_ptr< Compiler::JITCompiler >) |
|
explicit |
|
static |
Referenced by NES::NesCoordinator::NesCoordinator(), NES::ExpressionNodeTest::SetUp(), NES::LogicalExpressionTest::SetUp(), NES::SemanticQueryValidationTest::SetUp(), NES::SyntacticQueryValidationTest::SetUp(), and QueryCatalogTest::SetUp().
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
query | as a string |
References NES::Parsers::NesCEPQueryPlanCreator::getQueryPlan(), NES_DEBUG, NES_THROW_RUNTIME_ERROR, and NES::Parsers::NesCEPParser::query().
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
query | as a string |
References NES::Compiler::CPP, NES::Compiler::CompilationRequest::create(), NES::Query::getQueryPlan(), backward::details::move(), NES_DEBUG, NES_ERROR, and NES::Util::replaceFirst().
SchemaPtr NES::QueryParsingService::createSchemaFromCode | ( | const std::string & | schemaCodeSnippet | ) |
this function executes the code provided by the user and returns an schema Object
query | as a string |
References NES::Compiler::CPP, NES::Compiler::CompilationRequest::create(), backward::details::move(), NES_DEBUG, and NES_ERROR.