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

#include <CompilationCache.hpp>

Public Member Functions

bool contains (const SourceCode &code)
 check if the binary for a query already exists More...
 
void insert (const SourceCode &code, CompilationResult &compilationResult)
 inserts a compilation result for a new source code More...
 
CompilationResult get (const SourceCode &code)
 method to retrieve the compilation result for a given source code More...
 

Detailed Description

This class is used to cache the already generated binaries to not compile the the query over and over again

Member Function Documentation

◆ contains()

bool NES::Compiler::CompilationCache::contains ( const SourceCode code)

check if the binary for a query already exists

Parameters
code
Returns
bool if for this code the binary already exists

Referenced by insert(), and NES::Compiler::TEST_F().

Here is the caller graph for this function:

◆ get()

CompilationResult NES::Compiler::CompilationCache::get ( const SourceCode code)

method to retrieve the compilation result for a given source code

Parameters
code
Returns
compilation result

◆ insert()

void NES::Compiler::CompilationCache::insert ( const SourceCode code,
CompilationResult compilationResult 
)

inserts a compilation result for a new source code

Parameters
sourceCodereference to the source code
compilationResultreference to the compilation result

References contains(), and NES_WARNING.

Referenced by NES::Compiler::TEST_F().

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

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