NebulaStream  0.6.213
NebulaStream is a data and application management framework for the internet of things
Expressions.hpp File Reference
#include <Common/DataTypes/BasicTypes.hpp>
#include <memory>
#include <string>
#include <vector>
Include dependency graph for Expressions.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  NES::ExpressionItem
 A expression item represents the leaf in an expression tree. It is converted to an constant value expression or a field access expression. More...
 

Namespaces

 NES
 This exception represents a network error.
 

Typedefs

using NES::ValueTypePtr = std::shared_ptr< ValueType >
 
using NES::FieldAssignmentExpressionNodePtr = std::shared_ptr< FieldAssignmentExpressionNode >
 

Functions

ExpressionItem NES::Attribute (std::string name)
 Attribute(name) allows the user to reference a field in his expression. Attribute("f1") < 10 todo rename to field if conflict with legacy code is resolved. More...
 
ExpressionItem NES::Attribute (std::string name, BasicType type)
 Attribute(name, type) allows the user to reference a field, with a specific type in his expression. Field("f1", Int) < 10. todo remove this case if we added type inference at Runtime from the operator tree. todo rename to field if conflict with legacy code is resolved. More...
 
ExpressionNodePtr NES::WHEN (const ExpressionNodePtr &conditionExp, const ExpressionNodePtr &valueExp)
 WHEN(condition,value) can only be used as part of the left vector in a CASE() expression. Allows to only return the value expression if condition is met. More...
 
ExpressionNodePtr NES::WHEN (ExpressionItem conditionExp, ExpressionNodePtr valueExp)
 
ExpressionNodePtr NES::WHEN (ExpressionNodePtr conditionExp, ExpressionItem valueExp)
 
ExpressionNodePtr NES::WHEN (ExpressionItem conditionExp, ExpressionItem valueExp)
 
ExpressionNodePtr NES::CASE (const std::vector< ExpressionNodePtr > &whenExpressions, ExpressionNodePtr defaultValueExp)
 CASE({WHEN(condition,value),WHEN(condition, value)} , value) allows to evaluate all WHEN expressions from the vector list and only return the first one where the condition evaluated to true, or the value of the default expression. The CASE({WHEN()},default) is evaluated as a concatenated ternary operator in C++. More...
 
ExpressionNodePtr NES::CASE (std::vector< ExpressionNodePtr > whenExpressions, ExpressionItem defaultValueExp)