| 305 | void PrintTo(const Array& x, std::ostream* os) { *os << x.ToString(); } |
| 306 | |
| 307 | Result<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 | |
| 314 | Result<std::shared_ptr<Array>> Array::CopyTo( |
| 315 | const std::shared_ptr<MemoryManager>& to) const { |