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

Function ExportArray

cpp/src/arrow/c/bridge.cc:684–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

682} // namespace
683
684Status ExportArray(const Array& array, struct ArrowArray* out,
685 struct ArrowSchema* out_schema) {
686 SchemaExportGuard guard(out_schema);
687 if (out_schema != nullptr) {
688 RETURN_NOT_OK(ExportType(*array.type(), out_schema));
689 }
690 ArrayExporter exporter;
691 RETURN_NOT_OK(exporter.Export(array.data()));
692 exporter.Finish(out);
693 guard.Detach();
694 return Status::OK();
695}
696
697Status ExportRecordBatch(const RecordBatch& batch, struct ArrowArray* out,
698 struct ArrowSchema* out_schema) {

Callers 1

ExportStreamNextFunction · 0.70

Calls 7

ExportTypeFunction · 0.70
OKFunction · 0.50
typeMethod · 0.45
ExportMethod · 0.45
dataMethod · 0.45
FinishMethod · 0.45
DetachMethod · 0.45

Tested by

no test coverage detected