| 403 | template <typename Range, typename Tuple, std::size_t N = std::tuple_size<Tuple>::value> |
| 404 | struct TupleSetter { |
| 405 | static void Fill(const Table& table, Range* rows) { |
| 406 | using std::get; |
| 407 | using Element = typename std::tuple_element<N - 1, Tuple>::type; |
| 408 | using ArrayType = |
| 409 | typename TypeTraits<typename ConversionTraits<Element>::ArrowType>::ArrayType; |
| 410 | |
| 411 | auto iter = rows->begin(); |
| 412 | const ChunkedArray& chunked_array = *table.column(N - 1); |
| 413 | for (int i = 0; i < chunked_array.num_chunks(); i++) { |
| 414 | const ArrayType& array = |
| 415 | ::arrow::internal::checked_cast<const ArrayType&>(*chunked_array.chunk(i)); |
| 416 | for (int64_t j = 0; j < array.length(); j++) { |
| 417 | get<N - 1>(*iter++) = ConversionTraits<Element>::GetEntry(array, j); |
| 418 | } |
| 419 | } |
| 420 | |
| 421 | return TupleSetter<Range, Tuple, N - 1>::Fill(table, rows); |
| 422 | } |
| 423 | }; |
| 424 | |
| 425 | template <typename Range, typename Tuple> |
nothing calls this directly
no test coverage detected