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

Function ExportArray

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

Source from the content-addressed store, hash-verified

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