A query encoder for unary operator expressions. More...
#include <UnaryOpEncoder.h>
Public Member Functions | |
void | toSQL (const Function &f, std::string &buff, SQLVisitor &v) const |
It encodes the function to a SQL notation. More... | |
UnaryOpEncoder (const std::string &name) | |
Constructor. More... | |
~UnaryOpEncoder () | |
Destructor. More... | |
Protected Attributes | |
std::string | m_name |
The alias to the function. More... | |
A query encoder for unary operator expressions.
It encodes a binary operator using the following convetion: (op arg1).
Definition at line 45 of file UnaryOpEncoder.h.
|
inline |
|
inline |
Destructor.
Definition at line 57 of file UnaryOpEncoder.h.
|
virtual |
It encodes the function to a SQL notation.
This method will encode the function in prefix unary operator notation: (op operand). For example, the '-' function is encoded as: -A.
f | The function to be translated to a SQL notation. |
alias | The function alias in the data source query language. |
buff | The destination string buffer where the translation will be written. |
v | The SQL visitor that will be used to visit the arguments expression. |
Implements te::da::SQLFunctionEncoder.
|
protectedinherited |
The alias to the function.
Definition at line 88 of file SQLFunctionEncoder.h.