![]() |
mutable
A Database System for Research and Fast Prototyping
|
Defines a function. More...
#include <Schema.hpp>
Public Types | |
enum | fnid_t { FN_UDF } |
Public Member Functions | |
M_DECLARE_ENUM (kind_t) kind | |
the function kind: Scalar, Aggregate, etc. | |
Function (ThreadSafePooledString name, fnid_t fnid, kind_t kind) | |
bool | is_UDF () const |
Returns true iff this is a user-defined function. | |
bool | is_scalar () const |
Returns true iff this function is scalar, i.e. if it is evaluated per tuple. | |
bool | is_aggregate () const |
Returns true iff this function is an aggregation, i.e. if it is evaluated on all tuples. | |
void | dump (std::ostream &out) const |
void | dump () const |
Data Fields | |
ThreadSafePooledString | name |
the name of the function | |
fnid_t | fnid |
the function id | |
Static Private Attributes | |
static constexpr const char * | FNID_TO_STR_ [] |
static constexpr const char * | KIND_TO_STR_ [] = { M_ENUM_TO_STR(kind_t) } |
Defines a function.
There are functions pre-defined in the SQL standard and user-defined functions.
Definition at line 827 of file Schema.hpp.
enum m::Function::fnid_t |
Enumerator | |
---|---|
FN_UDF |
Definition at line 833 of file Schema.hpp.
|
inline |
Definition at line 844 of file Schema.hpp.
void m::Function::dump | ( | ) | const |
M_LCOV_EXCL_START void Function::dump | ( | std::ostream & | out | ) | const |
Definition at line 292 of file Schema.cpp.
References fnid, FNID_TO_STR_, KIND_TO_STR_, and name.
|
inline |
Returns true
iff this function is an aggregation, i.e. if it is evaluated on all tuples.
Definition at line 852 of file Schema.hpp.
|
inline |
Returns true
iff this function is scalar, i.e. if it is evaluated per tuple.
Definition at line 850 of file Schema.hpp.
|
inline |
Returns true
iff this is a user-defined function.
Definition at line 847 of file Schema.hpp.
m::Function::M_DECLARE_ENUM | ( | kind_t | ) |
the function kind: Scalar, Aggregate, etc.
fnid_t m::Function::fnid |
the function id
Definition at line 841 of file Schema.hpp.
Referenced by dump(), and m::wasm::ExprCompiler::operator()().
|
staticconstexprprivate |
Definition at line 858 of file Schema.hpp.
Referenced by dump().
|
staticconstexprprivate |
Definition at line 864 of file Schema.hpp.
Referenced by dump().
ThreadSafePooledString m::Function::name |