eckit::sql::expression::StringExpression class

Base classes

class SQLExpression

Public static functions

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

Constructors, destructors, conversion operators

StringExpression(const std::string&)
StringExpression(const StringExpression&)
~StringExpression()

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
auto andSplit(expression::Expressions&) -> bool virtual
void tables(std::set<const SQLTable*>&) 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 partialResult() 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 expandStars(const std::vector<std::reference_wrapper<const SQLTable>>&, expression::Expressions&) override
void prepare(SQLSelect& sql) override
void cleanup(SQLSelect& sql) override
auto type() const -> const type::SQLType* override
auto eval(bool& missing) const -> double override
void eval(double* out, bool& missing) const override
auto evalAsString(bool& missing) const -> std::string override
auto isConstant() const -> bool override
auto isNumber() const -> bool override
void output(SQLOutput& o) const override

Function documentation

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

void eckit::sql::expression::StringExpression::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::StringExpression::updateType(SQLSelect&) virtual

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

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

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

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

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

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

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

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

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

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

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