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

Function RangeOfValuesUsedByList

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

Source from the content-addressed store, hash-verified

150
151template <typename offset_type>
152std::pair<int64_t, int64_t> RangeOfValuesUsedByList(const ArraySpan& input) {
153 DCHECK(is_var_length_list(*input.type));
154 if (input.length == 0) {
155 return {0, 0};
156 }
157 const auto* offsets = input.buffers[1].data_as<offset_type>();
158 const int64_t min_offset = offsets[input.offset];
159 const int64_t max_end = offsets[input.offset + input.length];
160 return {min_offset, max_end - min_offset};
161}
162
163template <typename offset_type>
164int64_t SumOfListSizes(const ArraySpan& input) {

Callers

nothing calls this directly

Calls 1

is_var_length_listFunction · 0.85

Tested by

no test coverage detected