| 1029 | } |
| 1030 | |
| 1031 | Status Ingest_some_nulls(SEXP data, const std::shared_ptr<arrow::Array>& array, |
| 1032 | R_xlen_t start, R_xlen_t n, size_t chunk_index) const { |
| 1033 | auto list_array = checked_cast<const ListArrayType*>(array.get()); |
| 1034 | auto values_array = list_array->values(); |
| 1035 | |
| 1036 | auto ingest_one = [&](R_xlen_t i) { |
| 1037 | auto slice = list_array->value_slice(i); |
| 1038 | SET_VECTOR_ELT(data, i + start, Converter::Convert(slice)); |
| 1039 | return Status::OK(); |
| 1040 | }; |
| 1041 | |
| 1042 | return IngestSome(array, n, ingest_one); |
| 1043 | } |
| 1044 | |
| 1045 | bool Parallel() const { return false; } |
| 1046 | }; |
nothing calls this directly
no test coverage detected