| 917 | } |
| 918 | |
| 919 | void ResetHasFlags() { |
| 920 | // has_min_max_ will only be set when it meets any valid value. |
| 921 | this->has_min_max_ = false; |
| 922 | // has_distinct_count_ will only be set once SetDistinctCount() |
| 923 | // is called because distinct count calculation is not cheap and |
| 924 | // disabled by default. |
| 925 | this->has_distinct_count_ = false; |
| 926 | // Null count calculation is cheap and enabled by default. |
| 927 | this->has_null_count_ = true; |
| 928 | } |
| 929 | |
| 930 | void SetMinMaxPair(std::pair<T, T> min_max) { |
| 931 | if (comparator_ == nullptr) return; |
nothing calls this directly
no outgoing calls
no test coverage detected