MCPcopy Create free account
hub / github.com/apache/impala / Compare

Method Compare

be/src/runtime/decimal-value.inline.h:83–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82template<typename T>
83inline int DecimalValue<T>::Compare(const DecimalValue& other) const {
84 T x = value();
85 T y = other.value();
86 if (x == y) return 0;
87 if (x < y) return -1;
88 return 1;
89}
90
91template<typename T>
92inline const T DecimalValue<T>::whole_part(int scale) const {

Callers

nothing calls this directly

Calls 3

AdjustToSameScaleFunction · 0.85
ConvertToInt256Function · 0.85
valueMethod · 0.45

Tested by

no test coverage detected