OmniSciDB
085a039ca4
|
Functions | |
template<typename T > | |
T | floatFromDecimal (int64_t const dec, unsigned const scale) |
template<typename FLOAT_TYPE , typename INT_TYPE > | |
constexpr FLOAT_TYPE | maxRound () |
template<typename TO , typename FROM > | |
TO | safeNarrow (FROM const from) |
template<typename T > | |
T | roundDecimal (int64_t n, unsigned scale) |
template<typename TO , typename FROM > | |
TO | safeRound (FROM const from) |
template<typename T > | |
int64_t | safeScale (T from, unsigned const scale) |
bool | is_null_value (const SQLTypeInfo &ti, const Datum &constval) |
template<class T > | |
bool | expr_is (const std::shared_ptr< Analyzer::Expr > &expr) |
bool | is_expr_nullable (const Analyzer::Expr *expr) |
bool | is_in_values_nullable (const std::shared_ptr< Analyzer::Expr > &a, const std::list< std::shared_ptr< Analyzer::Expr >> &l) |
SQLTypes | get_ti_from_geo (const Geospatial::GeoBase *geo) |
bool Analyzer::anonymous_namespace{Analyzer.cpp}::expr_is | ( | const std::shared_ptr< Analyzer::Expr > & | expr | ) |
T Analyzer::anonymous_namespace{Analyzer.cpp}::floatFromDecimal | ( | int64_t const | dec, |
unsigned const | scale | ||
) |
Definition at line 743 of file Analyzer.cpp.
References shared::power10(), and heavydb.dtypes::T.
SQLTypes Analyzer::anonymous_namespace{Analyzer.cpp}::get_ti_from_geo | ( | const Geospatial::GeoBase * | geo | ) |
Definition at line 3621 of file Analyzer.cpp.
References CHECK, Geospatial::GeoBase::getType(), Geospatial::GeoBase::kLINESTRING, kLINESTRING, Geospatial::GeoBase::kMULTIPOLYGON, kMULTIPOLYGON, kNULLT, Geospatial::GeoBase::kPOINT, kPOINT, Geospatial::GeoBase::kPOLYGON, kPOLYGON, and UNREACHABLE.
Referenced by Analyzer::GeoConstant::GeoConstant(), and RelAlgTranslator::translateGeoFunctionArg().
bool Analyzer::anonymous_namespace{Analyzer.cpp}::is_expr_nullable | ( | const Analyzer::Expr * | expr | ) |
Definition at line 1576 of file Analyzer.cpp.
References Analyzer::Constant::get_is_null(), SQLTypeInfo::get_notnull(), and Analyzer::Expr::get_type_info().
Referenced by is_in_values_nullable().
bool Analyzer::anonymous_namespace{Analyzer.cpp}::is_in_values_nullable | ( | const std::shared_ptr< Analyzer::Expr > & | a, |
const std::list< std::shared_ptr< Analyzer::Expr >> & | l | ||
) |
Definition at line 1585 of file Analyzer.cpp.
References is_expr_nullable().
|
inline |
Definition at line 1156 of file Analyzer.cpp.
References Datum::arrayval, Datum::bigintval, Datum::doubleval, Datum::floatval, SQLTypeInfo::get_type(), Datum::intval, kARRAY, kBIGINT, kBOOLEAN, kCHAR, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kINT, kLINESTRING, kMULTIPOLYGON, kNULLT, kNUMERIC, kPOINT, kPOLYGON, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, kTINYINT, kVARCHAR, NULL_BIGINT, NULL_BOOLEAN, NULL_DOUBLE, NULL_FLOAT, NULL_INT, NULL_SMALLINT, NULL_TINYINT, Datum::smallintval, Datum::stringval, Datum::tinyintval, and UNREACHABLE.
Referenced by Analyzer::Constant::do_cast().
constexpr FLOAT_TYPE Analyzer::anonymous_namespace{Analyzer.cpp}::maxRound | ( | ) |
Definition at line 755 of file Analyzer.cpp.
T Analyzer::anonymous_namespace{Analyzer.cpp}::roundDecimal | ( | int64_t | n, |
unsigned | scale | ||
) |
Definition at line 778 of file Analyzer.cpp.
References anonymous_namespace{Utm.h}::n, and heavydb.dtypes::T.
TO Analyzer::anonymous_namespace{Analyzer.cpp}::safeNarrow | ( | FROM const | from | ) |
Definition at line 767 of file Analyzer.cpp.
TO Analyzer::anonymous_namespace{Analyzer.cpp}::safeRound | ( | FROM const | from | ) |
int64_t Analyzer::anonymous_namespace{Analyzer.cpp}::safeScale | ( | T | from, |
unsigned const | scale | ||
) |
Definition at line 816 of file Analyzer.cpp.
Referenced by Analyzer::Constant::cast_number().