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

Function ExportArray

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

Source from the content-addressed store, hash-verified

690} // namespace
691
692Status ExportArray(const Array& array, struct ArrowArray* out,
693 struct ArrowSchema* out_schema) {
694 SchemaExportGuard guard(out_schema);
695 if (out_schema != nullptr) {
696 RETURN_NOT_OK(ExportType(*array.type(), out_schema));
697 }
698 ArrayExporter exporter;
699 RETURN_NOT_OK(exporter.Export(array.data()));
700 exporter.Finish(out);
701 guard.Detach();
702 return Status::OK();
703}
704
705Status ExportRecordBatch(const RecordBatch& batch, struct ArrowArray* out,
706 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