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

Function _arrow_ImportArray

r/src/arrowExports.cpp:583–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581// bridge.cpp
582std::shared_ptr<arrow::Array> ImportArray(arrow::r::Pointer<struct ArrowArray> array, arrow::r::Pointer<struct ArrowSchema> schema);
583extern "C" SEXP _arrow_ImportArray(SEXP array_sexp, SEXP schema_sexp){
584BEGIN_CPP11
585 arrow::r::Input<arrow::r::Pointer<struct ArrowArray>>::type array(array_sexp);
586 arrow::r::Input<arrow::r::Pointer<struct ArrowSchema>>::type schema(schema_sexp);
587 return cpp11::as_sexp(ImportArray(array, schema));
588END_CPP11
589}
590// bridge.cpp
591std::shared_ptr<arrow::RecordBatch> ImportRecordBatch(arrow::r::Pointer<struct ArrowArray> array, arrow::r::Pointer<struct ArrowSchema> schema);
592extern "C" SEXP _arrow_ImportRecordBatch(SEXP array_sexp, SEXP schema_sexp){

Callers

nothing calls this directly

Calls 2

as_sexpFunction · 0.85
ImportArrayFunction · 0.70

Tested by

no test coverage detected