| 148 | } // namespace internal |
| 149 | |
| 150 | int64_t FindPhysicalIndex(const ArraySpan& span, int64_t i, int64_t absolute_offset) { |
| 151 | const auto type_id = RunEndsArray(span).type->id(); |
| 152 | if (type_id == Type::INT16) { |
| 153 | return internal::FindPhysicalIndex<int16_t>(span, i, absolute_offset); |
| 154 | } |
| 155 | if (type_id == Type::INT32) { |
| 156 | return internal::FindPhysicalIndex<int32_t>(span, i, absolute_offset); |
| 157 | } |
| 158 | DCHECK_EQ(type_id, Type::INT64); |
| 159 | return internal::FindPhysicalIndex<int64_t>(span, i, absolute_offset); |
| 160 | } |
| 161 | |
| 162 | int64_t FindPhysicalLength(const ArraySpan& span) { |
| 163 | auto type_id = RunEndsArray(span).type->id(); |