| 1136 | } |
| 1137 | |
| 1138 | bool StorageValue::gt(const StorageValue& other, common::PhysicalTypeID type) const { |
| 1139 | switch (type) { |
| 1140 | case common::PhysicalTypeID::BOOL: |
| 1141 | case common::PhysicalTypeID::LIST: |
| 1142 | case common::PhysicalTypeID::ARRAY: |
| 1143 | case common::PhysicalTypeID::INTERNAL_ID: |
| 1144 | case common::PhysicalTypeID::STRING: |
| 1145 | case common::PhysicalTypeID::JSON: |
| 1146 | case common::PhysicalTypeID::UINT64: |
| 1147 | case common::PhysicalTypeID::UINT32: |
| 1148 | case common::PhysicalTypeID::UINT16: |
| 1149 | case common::PhysicalTypeID::UINT8: |
| 1150 | return this->unsignedInt > other.unsignedInt; |
| 1151 | case common::PhysicalTypeID::INT128: |
| 1152 | return this->signedInt128 > other.signedInt128; |
| 1153 | case common::PhysicalTypeID::INT64: |
| 1154 | case common::PhysicalTypeID::INT32: |
| 1155 | case common::PhysicalTypeID::INT16: |
| 1156 | case common::PhysicalTypeID::INT8: |
| 1157 | return this->signedInt > other.signedInt; |
| 1158 | case common::PhysicalTypeID::FLOAT: |
| 1159 | case common::PhysicalTypeID::DOUBLE: |
| 1160 | return this->floatVal > other.floatVal; |
| 1161 | default: |
| 1162 | UNREACHABLE_CODE; |
| 1163 | } |
| 1164 | } |
| 1165 | |
| 1166 | std::pair<std::optional<StorageValue>, std::optional<StorageValue>> getMinMaxStorageValue( |
| 1167 | const uint8_t* data, uint64_t offset, uint64_t numValues, PhysicalTypeID physicalType, |
no outgoing calls
no test coverage detected