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

Method ViewOrCopyTo

cpp/src/arrow/array/array_base.cc:320–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320Result<std::shared_ptr<Array>> Array::ViewOrCopyTo(
321 const std::shared_ptr<MemoryManager>& to) const {
322 ARROW_ASSIGN_OR_RAISE(auto new_data, data()->ViewOrCopyTo(to));
323 return MakeArray(new_data);
324}
325
326Result<std::shared_ptr<Tensor>> Array::ToTensor(bool allow_nulls) const {
327 if (!allow_nulls && null_count() > 0) {

Callers

nothing calls this directly

Calls 1

MakeArrayFunction · 0.70

Tested by

no test coverage detected