|
| static DoubleVal | Pi (FunctionContext *) |
| |
| static DoubleVal | E (FunctionContext *) |
| |
| static BigIntVal | Abs (FunctionContext *, const BigIntVal &) |
| |
| static DoubleVal | Abs (FunctionContext *, const DoubleVal &) |
| |
| static FloatVal | Abs (FunctionContext *, const FloatVal &) |
| |
| static IntVal | Abs (FunctionContext *, const IntVal &) |
| |
| static SmallIntVal | Abs (FunctionContext *, const SmallIntVal &) |
| |
| static TinyIntVal | Abs (FunctionContext *, const TinyIntVal &) |
| |
| static DoubleVal | Sin (FunctionContext *, const DoubleVal &) |
| |
| static DoubleVal | Asin (FunctionContext *, const DoubleVal &) |
| |
| static DoubleVal | Cos (FunctionContext *, const DoubleVal &) |
| |
| static DoubleVal | Acos (FunctionContext *, const DoubleVal &) |
| |
| static DoubleVal | Tan (FunctionContext *, const DoubleVal &) |
| |
| static DoubleVal | Atan (FunctionContext *, const DoubleVal &) |
| |
| static DoubleVal | Sqrt (FunctionContext *, const DoubleVal &) |
| |
| static DoubleVal | Exp (FunctionContext *, const DoubleVal &) |
| |
| static BigIntVal | Ceil (FunctionContext *, const DoubleVal &) |
| |
| static BigIntVal | Floor (FunctionContext *, const DoubleVal &) |
| |
| static DoubleVal | Ln (FunctionContext *, const DoubleVal &) |
| |
| static DoubleVal | Log10 (FunctionContext *, const DoubleVal &) |
| |
| static FloatVal | Sign (FunctionContext *, const DoubleVal &) |
| |
| static DoubleVal | Radians (FunctionContext *, const DoubleVal &) |
| |
| static DoubleVal | Degrees (FunctionContext *, const DoubleVal &) |
| |
| static BigIntVal | Round (FunctionContext *, const DoubleVal &) |
| |
| static DoubleVal | RoundUpTo (FunctionContext *, const DoubleVal &, const IntVal &) |
| |
| static DoubleVal | Log2 (FunctionContext *, const DoubleVal &) |
| |
| static DoubleVal | Log (FunctionContext *, const DoubleVal &base, const DoubleVal &val) |
| |
| static DoubleVal | Pow (FunctionContext *, const DoubleVal &base, const DoubleVal &val) |
| |
| static void | RandPrepare (FunctionContext *, FunctionContext::FunctionStateScope) |
| | Used for both Rand() and RandSeed() More...
|
| |
| static DoubleVal | Rand (FunctionContext *) |
| |
| static DoubleVal | RandSeed (FunctionContext *, const BigIntVal &seed) |
| |
| static StringVal | Bin (FunctionContext *, const BigIntVal &) |
| |
| static StringVal | HexInt (FunctionContext *, const BigIntVal &) |
| |
| static StringVal | HexString (FunctionContext *, const StringVal &) |
| |
| static StringVal | Unhex (FunctionContext *, const StringVal &) |
| |
| static StringVal | ConvInt (FunctionContext *, const BigIntVal &n, const TinyIntVal &src_base, const TinyIntVal &dst_base) |
| |
| static StringVal | ConvString (FunctionContext *, const StringVal &s, const TinyIntVal &src_base, const TinyIntVal &dst_base) |
| |
| static BigIntVal | PmodBigInt (FunctionContext *, const BigIntVal &, const BigIntVal &) |
| |
| static DoubleVal | PmodDouble (FunctionContext *, const DoubleVal &, const DoubleVal &) |
| |
| static FloatVal | FmodFloat (FunctionContext *, const FloatVal &, const FloatVal &) |
| |
| static DoubleVal | FmodDouble (FunctionContext *, const DoubleVal &, const DoubleVal &) |
| |
| template<typename T > |
| static T | Positive (FunctionContext *, const T &) |
| |
| template<typename T > |
| static T | Negative (FunctionContext *, const T &) |
| |
| static BigIntVal | QuotientDouble (FunctionContext *, const DoubleVal &, const DoubleVal &) |
| |
| static BigIntVal | QuotientBigInt (FunctionContext *, const BigIntVal &, const BigIntVal &) |
| |
| template<typename VAL_TYPE , bool ISLEAST> |
| static VAL_TYPE | LeastGreatest (FunctionContext *, int num_args, const VAL_TYPE *args) |
| |
| template<bool ISLEAST> |
| static StringVal | LeastGreatest (FunctionContext *, int num_args, const StringVal *args) |
| |
| template<bool ISLEAST> |
| static TimestampVal | LeastGreatest (FunctionContext *, int num_args, const TimestampVal *args) |
| |
| template<bool ISLEAST> |
| static DecimalVal | LeastGreatest (FunctionContext *, int num_args, const DecimalVal *args) |
| |
Definition at line 32 of file math-functions.h.
| bool impala::MathFunctions::DecimalInBaseToDecimal |
( |
int64_t |
src_num, |
|
|
int8_t |
src_base, |
|
|
int64_t * |
result |
|
) |
| |
|
staticprivate |
Converts src_num representing a number in src_base but encoded in decimal into its actual decimal number. For example, if src_num is 21 and src_base is 5, then this function sets *result to 2*5^1 + 1*5^0 = 11. Returns false if overflow occurred, true upon success.
Definition at line 328 of file math-functions.cc.
References impala::abs(), and UNLIKELY.
Referenced by ConvInt().