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

Method Ingest_some_nulls

r/src/array_to_vector.cpp:1053–1065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1051 }
1052
1053 Status Ingest_some_nulls(SEXP data, const std::shared_ptr<arrow::Array>& array,
1054 R_xlen_t start, R_xlen_t n, size_t chunk_index) const {
1055 auto list_array = checked_cast<const ListArrayType*>(array.get());
1056 auto values_array = list_array->values();
1057
1058 auto ingest_one = [&](R_xlen_t i) {
1059 auto slice = list_array->value_slice(i);
1060 SET_VECTOR_ELT(data, i + start, Converter::Convert(slice));
1061 return Status::OK();
1062 };
1063
1064 return IngestSome(array, n, ingest_one);
1065 }
1066
1067 bool Parallel() const { return false; }
1068};

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