| 840 | } |
| 841 | |
| 842 | Status Ingest_some_nulls(SEXP data, const std::shared_ptr<arrow::Array>& array, |
| 843 | R_xlen_t start, R_xlen_t n, size_t chunk_index) const { |
| 844 | auto p_data = REAL(data) + start; |
| 845 | auto p_values = array->data()->GetValues<int64_t>(1); |
| 846 | auto ingest_one = [&](R_xlen_t i) { |
| 847 | p_data[i] = static_cast<double>(p_values[i] / 1000); |
| 848 | return Status::OK(); |
| 849 | }; |
| 850 | auto null_one = [&](R_xlen_t i) { |
| 851 | p_data[i] = NA_REAL; |
| 852 | return Status::OK(); |
| 853 | }; |
| 854 | return IngestSome(array, n, ingest_one, null_one); |
| 855 | } |
| 856 | }; |
| 857 | |
| 858 | template <typename value_type, typename unit_type = TimeType> |
nothing calls this directly
no test coverage detected