Read a run-end value from any supported run-end integer representation.
| 224 | |
| 225 | /// Read a run-end value from any supported run-end integer representation. |
| 226 | int64_t GetRunEndValue(const ArraySpan& run_ends, int64_t physical_index) { |
| 227 | switch (run_ends.type->id()) { |
| 228 | case Type::INT16: |
| 229 | return run_ends.GetValues<int16_t>(1)[physical_index]; |
| 230 | case Type::INT32: |
| 231 | return run_ends.GetValues<int32_t>(1)[physical_index]; |
| 232 | case Type::INT64: |
| 233 | return run_ends.GetValues<int64_t>(1)[physical_index]; |
| 234 | default: |
| 235 | DCHECK(false) << "Unexpected run-end type for search_sorted values: " |
| 236 | << run_ends.type->ToString(); |
| 237 | return 0; |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | class SearchWindow { |
| 242 | public: |
no test coverage detected