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

This is a utility, which provides an context, to dump state (e.g., query plans or irs) to a file or the console. More...

#include <DumpHelper.hpp>

Public Member Functions

void dump (const std::string_view &name, const std::string_view &output) const
 Function to dump a specific entity using this context. More...
 

Static Public Member Functions

static DumpHelper create (const std::string &contextIdentifier, bool dumpToConsole, bool dumpToFile, const std::string &outputPath=std::string())
 Factory method to create the dump utility. More...
 

Detailed Description

This is a utility, which provides an context, to dump state (e.g., query plans or irs) to a file or the console.

Member Function Documentation

◆ create()

DumpHelper NES::DumpHelper::create ( const std::string &  contextIdentifier,
bool  dumpToConsole,
bool  dumpToFile,
const std::string &  outputPath = std::string() 
)
static

Factory method to create the dump utility.

Parameters
contextIdentifierthe global identifier for all elements that are dumped by this context
dumpToConsoleindicator if content is dumped to console
dumpToFileindicator if content is dumped to file
outputPathoutput path if content is dumped to a file
Returns
DumpHelper

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

Here is the caller graph for this function:

◆ dump()

void NES::DumpHelper::dump ( const std::string_view &  name,
const std::string_view &  output 
) const

Function to dump a specific entity using this context.

Parameters
nameidentifier of this entry.
outputthe content that should be dumped.

References NES_INFO.


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