eckit::sql::expression::ParameterExpression class

Base classes

class SQLExpression

Public static functions

static auto number(double) -> std::shared_ptr<SQLExpression>

Constructors, destructors, conversion operators

ParameterExpression(int)
ParameterExpression(const ParameterExpression&)
~ParameterExpression()

Public functions

auto clone() const -> std::shared_ptr<SQLExpression> override
auto reshift(int minColumnShift) const -> std::shared_ptr<SQLExpression> override
void preprepare(SQLSelect&) virtual
void updateType(SQLSelect&) virtual
void eval(double* out, bool& missing) const virtual
auto evalAsString(bool& missing) const -> std::string virtual
auto andSplit(expression::Expressions&) -> bool virtual
void tables(std::set<const SQLTable*>&) virtual
auto isNumber() const -> bool virtual
auto simplify(bool&) -> std::shared_ptr<SQLExpression> virtual
void title(const std::string&) virtual
auto title() const -> std::string virtual
auto isAggregate() const -> bool virtual
void output(SQLOutput&) const virtual
void partialResult() virtual
void expandStars(const std::vector<std::reference_wrapper<const SQLTable>>&, expression::Expressions&) virtual
auto isBitfield() const -> bool virtual
auto bitfieldDef() const -> BitfieldDef
auto hasMissingValue() const -> bool virtual
auto missingValue() const -> double
auto shared_from_this(T... args) -> T
auto weak_from_this(T... args) -> T

Private functions

void print(std::ostream& s) const override
void prepare(SQLSelect& sql) override
void cleanup(SQLSelect& sql) override
auto eval(bool& missing) const -> double override
auto type() const -> const type::SQLType* override
auto isConstant() const -> bool override

Function documentation

static std::shared_ptr<SQLExpression> eckit::sql::expression::ParameterExpression::number(double)

void eckit::sql::expression::ParameterExpression::preprepare(SQLSelect&) virtual

pre-prepare ideally wouldn't exist. To enable a two-pass prepare of SQL columns for SQLSelect, this is here.

void eckit::sql::expression::ParameterExpression::updateType(SQLSelect&) virtual

void eckit::sql::expression::ParameterExpression::eval(double* out, bool& missing) const virtual

std::string eckit::sql::expression::ParameterExpression::evalAsString(bool& missing) const virtual

bool eckit::sql::expression::ParameterExpression::andSplit(expression::Expressions&) virtual

void eckit::sql::expression::ParameterExpression::tables(std::set<const SQLTable*>&) virtual

bool eckit::sql::expression::ParameterExpression::isNumber() const virtual

std::shared_ptr<SQLExpression> eckit::sql::expression::ParameterExpression::simplify(bool&) virtual

void eckit::sql::expression::ParameterExpression::title(const std::string&) virtual

std::string eckit::sql::expression::ParameterExpression::title() const virtual

bool eckit::sql::expression::ParameterExpression::isAggregate() const virtual

void eckit::sql::expression::ParameterExpression::output(SQLOutput&) const virtual

void eckit::sql::expression::ParameterExpression::partialResult() virtual

void eckit::sql::expression::ParameterExpression::expandStars(const std::vector<std::reference_wrapper<const SQLTable>>&, expression::Expressions&) virtual

bool eckit::sql::expression::ParameterExpression::isBitfield() const virtual

BitfieldDef eckit::sql::expression::ParameterExpression::bitfieldDef() const

bool eckit::sql::expression::ParameterExpression::hasMissingValue() const virtual

double eckit::sql::expression::ParameterExpression::missingValue() const