MCPcopy Create free account
hub / github.com/apache/arrow / SumOfLogicalListSizes

Function SumOfLogicalListSizes

cpp/src/arrow/util/list_util.cc:215–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215Result<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

Callers

nothing calls this directly

Calls 3

is_var_length_list_likeFunction · 0.85
TypeErrorFunction · 0.50
idMethod · 0.45

Tested by

no test coverage detected