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

Method Convert

r/src/array_to_vector.cpp:144–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 }
143
144 static SEXP Convert(const std::shared_ptr<ChunkedArray>& chunked_array,
145 bool use_threads) {
146 RTasks tasks(use_threads);
147 SEXP out = PROTECT(Converter::LazyConvert(chunked_array, tasks));
148 StopIfNotOk(tasks.Finish());
149
150 UNPROTECT(1);
151 return out;
152 }
153
154 static SEXP Convert(const std::shared_ptr<Array>& array) {
155 return Convert(std::make_shared<ChunkedArray>(array), false);

Callers 1

AllocateMethod · 0.45

Calls 3

StopIfNotOkFunction · 0.85
ConvertFunction · 0.50
FinishMethod · 0.45

Tested by

no test coverage detected