| 213 | } |
| 214 | |
| 215 | Result<int64_t> SumOfLogicalListSizes(const ArraySpan& input) { |
| 216 | switch (input.type->id()) { |
| 217 | case Type::LIST: |
| 218 | return SumOfListSizes<ListType::offset_type>(input); |
| 219 | case Type::MAP: |
| 220 | return SumOfListSizes<MapType::offset_type>(input); |
| 221 | case Type::LARGE_LIST: |
| 222 | return SumOfListSizes<LargeListType::offset_type>(input); |
| 223 | case Type::LIST_VIEW: |
| 224 | return SumOfListViewSizes<ListViewType::offset_type>(input); |
| 225 | case Type::LARGE_LIST_VIEW: |
| 226 | return SumOfListViewSizes<LargeListViewType::offset_type>(input); |
| 227 | default: |
| 228 | break; |
| 229 | } |
| 230 | DCHECK(!is_var_length_list_like(*input.type)); |
| 231 | return Status::TypeError( |
| 232 | "SumOfLogicalListSizes: input is not a var-length list-like array"); |
| 233 | } |
| 234 | |
| 235 | } // namespace internal |
| 236 |
nothing calls this directly
no test coverage detected