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

Method View

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

Source from the content-addressed store, hash-verified

305void PrintTo(const Array& x, std::ostream* os) { *os << x.ToString(); }
306
307Result<std::shared_ptr<Array>> Array::View(
308 const std::shared_ptr<DataType>& out_type) const {
309 ARROW_ASSIGN_OR_RAISE(std::shared_ptr<ArrayData> result,
310 internal::GetArrayView(data_, out_type));
311 return MakeArray(result);
312}
313
314Result<std::shared_ptr<Array>> Array::CopyTo(
315 const std::shared_ptr<MemoryManager>& to) const {

Callers 1

CheckViewFailsFunction · 0.45

Calls 3

GetArrayViewFunction · 0.85
MakeArrayFunction · 0.70
ARROW_ASSIGN_OR_RAISEFunction · 0.50

Tested by 1

CheckViewFailsFunction · 0.36