| 223 | |
| 224 | template <typename BaseListType> |
| 225 | Status VisitBaseList(const BaseListType& type) const { |
| 226 | using offset_type = typename BaseListType::offset_type; |
| 227 | RETURN_NOT_OK(VisitBitmap(input.buffers[0])); |
| 228 | |
| 229 | const Buffer& offsets_buffer = *input.buffers[1]; |
| 230 | RETURN_NOT_OK( |
| 231 | range_starts->Append(reinterpret_cast<uint64_t>(offsets_buffer.data()))); |
| 232 | RETURN_NOT_OK(range_offsets->Append(sizeof(offset_type) * offset)); |
| 233 | RETURN_NOT_OK(range_lengths->Append(sizeof(offset_type) * length)); |
| 234 | |
| 235 | const offset_type* offsets = input.GetValues<offset_type>(1, offset); |
| 236 | int64_t start = static_cast<int64_t>(offsets[0]); |
| 237 | int64_t end = static_cast<int64_t>(offsets[length]); |
| 238 | GetByteRangesArray child{*input.child_data[0], start, end - start, |
| 239 | range_starts, range_offsets, range_lengths}; |
| 240 | return VisitTypeInline(*type.value_type(), &child); |
| 241 | } |
| 242 | |
| 243 | Status Visit(const ListType& type) const { return VisitBaseList(type); } |
| 244 |
nothing calls this directly
no test coverage detected