Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include <decimal-functions.h>
Static Private Member Functions | |
static DecimalVal | RoundTo (FunctionContext *context, const DecimalVal &val, int scale, DecimalOperators::DecimalRoundOp op) |
Implementation of RoundTo. More... | |
Definition at line 29 of file decimal-functions.h.
|
static |
Definition at line 35 of file decimal-functions.cc.
References impala::abs(), impala_udf::FunctionContext::GetArgType(), impala::ColumnType::GetByteSize(), impala_udf::AnyVal::is_null, impala::AnyValUtil::TypeDescToColumnType(), impala_udf::DecimalVal::val16, impala_udf::DecimalVal::val4, and impala_udf::DecimalVal::val8.
|
static |
Definition at line 51 of file decimal-functions.cc.
References impala::DecimalOperators::CEIL, and impala::DecimalOperators::RoundDecimal().
|
static |
Definition at line 55 of file decimal-functions.cc.
References impala::DecimalOperators::FLOOR, and impala::DecimalOperators::RoundDecimal().
|
static |
Definition at line 27 of file decimal-functions.cc.
References impala_udf::FunctionContext::GetArgType(), and impala_udf::FunctionContext::TypeDesc::precision.
Referenced by impala::Expr::InitBuiltinsDummy().
|
static |
Definition at line 59 of file decimal-functions.cc.
References impala::DecimalOperators::ROUND, and impala::DecimalOperators::RoundDecimal().
|
static |
Definition at line 82 of file decimal-functions.cc.
References impala_udf::AnyVal::is_null, impala::DecimalOperators::ROUND, and impala_udf::SmallIntVal::val.
Referenced by RoundTo(), and TruncateTo().
|
static |
Definition at line 77 of file decimal-functions.cc.
References impala_udf::AnyVal::is_null, impala::DecimalOperators::ROUND, RoundTo(), and impala_udf::TinyIntVal::val.
|
static |
Definition at line 87 of file decimal-functions.cc.
References impala_udf::AnyVal::is_null, impala::DecimalOperators::ROUND, RoundTo(), and impala_udf::IntVal::val.
|
static |
Definition at line 92 of file decimal-functions.cc.
References impala_udf::AnyVal::is_null, impala::DecimalOperators::ROUND, RoundTo(), and impala_udf::BigIntVal::val.
|
inlinestaticprivate |
Implementation of RoundTo.
Definition at line 63 of file decimal-functions.cc.
References impala_udf::FunctionContext::GetArgType(), impala_udf::FunctionContext::GetReturnType(), impala::DecimalOperators::RoundDecimal(), impala::DecimalOperators::RoundDecimalNegativeScale(), and impala::AnyValUtil::TypeDescToColumnType().
|
static |
Definition at line 31 of file decimal-functions.cc.
References impala_udf::FunctionContext::GetArgType(), and impala_udf::FunctionContext::TypeDesc::scale.
|
static |
Definition at line 98 of file decimal-functions.cc.
References impala::DecimalOperators::RoundDecimal(), and impala::DecimalOperators::TRUNCATE.
|
static |
Definition at line 107 of file decimal-functions.cc.
References impala_udf::AnyVal::is_null, RoundTo(), impala::DecimalOperators::TRUNCATE, and impala_udf::SmallIntVal::val.
|
static |
Definition at line 102 of file decimal-functions.cc.
References impala_udf::AnyVal::is_null, RoundTo(), impala::DecimalOperators::TRUNCATE, and impala_udf::TinyIntVal::val.
|
static |
Definition at line 112 of file decimal-functions.cc.
References impala_udf::AnyVal::is_null, RoundTo(), impala::DecimalOperators::TRUNCATE, and impala_udf::IntVal::val.
|
static |
Definition at line 117 of file decimal-functions.cc.
References impala_udf::AnyVal::is_null, RoundTo(), impala::DecimalOperators::TRUNCATE, and impala_udf::BigIntVal::val.