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

Method Convert

r/src/array_to_vector.cpp:109–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 }
108
109 static SEXP Convert(const std::shared_ptr<ChunkedArray>& chunked_array,
110 bool use_threads) {
111 RTasks tasks(use_threads);
112 SEXP out = PROTECT(Converter::LazyConvert(chunked_array, tasks));
113 StopIfNotOk(tasks.Finish());
114
115 UNPROTECT(1);
116 return out;
117 }
118
119 static SEXP Convert(const std::shared_ptr<Array>& array) {
120 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