|
| static DecimalVal | CastToDecimalVal (FunctionContext *, const DecimalVal &) |
| |
| static DecimalVal | CastToDecimalVal (FunctionContext *, const TinyIntVal &) |
| |
| static DecimalVal | CastToDecimalVal (FunctionContext *, const SmallIntVal &) |
| |
| static DecimalVal | CastToDecimalVal (FunctionContext *, const IntVal &) |
| |
| static DecimalVal | CastToDecimalVal (FunctionContext *, const BigIntVal &) |
| |
| static DecimalVal | CastToDecimalVal (FunctionContext *, const FloatVal &) |
| |
| static DecimalVal | CastToDecimalVal (FunctionContext *, const DoubleVal &) |
| |
| static DecimalVal | CastToDecimalVal (FunctionContext *, const StringVal &) |
| |
| static BooleanVal | CastToBooleanVal (FunctionContext *, const DecimalVal &) |
| |
| static TinyIntVal | CastToTinyIntVal (FunctionContext *, const DecimalVal &) |
| |
| static SmallIntVal | CastToSmallIntVal (FunctionContext *, const DecimalVal &) |
| |
| static IntVal | CastToIntVal (FunctionContext *, const DecimalVal &) |
| |
| static BigIntVal | CastToBigIntVal (FunctionContext *, const DecimalVal &) |
| |
| static FloatVal | CastToFloatVal (FunctionContext *, const DecimalVal &) |
| |
| static DoubleVal | CastToDoubleVal (FunctionContext *, const DecimalVal &) |
| |
| static StringVal | CastToStringVal (FunctionContext *, const DecimalVal &) |
| |
| static TimestampVal | CastToTimestampVal (FunctionContext *, const DecimalVal &) |
| |
| static DecimalVal | Add_DecimalVal_DecimalVal (FunctionContext *, const DecimalVal &, const DecimalVal &) |
| |
| static DecimalVal | Subtract_DecimalVal_DecimalVal (FunctionContext *, const DecimalVal &, const DecimalVal &) |
| |
| static DecimalVal | Multiply_DecimalVal_DecimalVal (FunctionContext *, const DecimalVal &, const DecimalVal &) |
| |
| static DecimalVal | Divide_DecimalVal_DecimalVal (FunctionContext *, const DecimalVal &, const DecimalVal &) |
| |
| static DecimalVal | Mod_DecimalVal_DecimalVal (FunctionContext *, const DecimalVal &, const DecimalVal &) |
| |
| static BooleanVal | Eq_DecimalVal_DecimalVal (FunctionContext *, const DecimalVal &, const DecimalVal &) |
| |
| static BooleanVal | Ne_DecimalVal_DecimalVal (FunctionContext *, const DecimalVal &, const DecimalVal &) |
| |
| static BooleanVal | Ge_DecimalVal_DecimalVal (FunctionContext *, const DecimalVal &, const DecimalVal &) |
| |
| static BooleanVal | Gt_DecimalVal_DecimalVal (FunctionContext *, const DecimalVal &, const DecimalVal &) |
| |
| static BooleanVal | Le_DecimalVal_DecimalVal (FunctionContext *, const DecimalVal &, const DecimalVal &) |
| |
| static BooleanVal | Lt_DecimalVal_DecimalVal (FunctionContext *, const DecimalVal &, const DecimalVal &) |
| |
| static DecimalVal | RoundDecimal (FunctionContext *context, const DecimalVal &val, const ColumnType &val_type, const ColumnType &output_type, const DecimalRoundOp &op) |
| |
| static DecimalVal | RoundDecimal (FunctionContext *context, const DecimalVal &val, const DecimalRoundOp &op) |
| |
| static DecimalVal | RoundDecimalNegativeScale (FunctionContext *context, const DecimalVal &val, const ColumnType &val_type, const ColumnType &output_type, const DecimalRoundOp &op, int64_t rounding_scale) |
| |
|
| static DecimalVal | IntToDecimalVal (FunctionContext *context, const ColumnType &type, int64_t val) |
| | Converts 'val' to a DecimalVal according to 'type'. 'type' must be a decimal type. More...
|
| |
| static DecimalVal | FloatToDecimalVal (FunctionContext *context, const ColumnType &type, double val) |
| |
| static DecimalVal | ScaleDecimalValue (FunctionContext *context, const Decimal4Value &val, const ColumnType &val_type, const ColumnType &output_type) |
| | Returns the value of 'val' scaled to 'output_type'. More...
|
| |
| static DecimalVal | ScaleDecimalValue (FunctionContext *context, const Decimal8Value &val, const ColumnType &val_type, const ColumnType &output_type) |
| |
| static DecimalVal | ScaleDecimalValue (FunctionContext *context, const Decimal16Value &val, const ColumnType &val_type, const ColumnType &output_type) |
| |
| template<typename T > |
| static T | RoundDelta (const DecimalValue< T > &v, int src_scale, int target_scale, const DecimalRoundOp &op) |
| |
Implementation of the decimal operators. These include the cast, arithmetic and binary operators.
Definition at line 33 of file decimal-operators.h.