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

Method Ingest_some_nulls

r/src/array_to_vector.cpp:1031–1043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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};

Callers

nothing calls this directly

Calls 6

IngestSomeFunction · 0.85
value_sliceMethod · 0.80
ConvertFunction · 0.50
OKFunction · 0.50
getMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected