| 275 | /// \brief Finish to an array of the specified ArrayType |
| 276 | template <typename ArrayType> |
| 277 | Status FinishTyped(std::shared_ptr<ArrayType>* out) { |
| 278 | std::shared_ptr<Array> out_untyped; |
| 279 | ARROW_RETURN_NOT_OK(Finish(&out_untyped)); |
| 280 | *out = std::static_pointer_cast<ArrayType>(std::move(out_untyped)); |
| 281 | return Status::OK(); |
| 282 | } |
| 283 | |
| 284 | // Check the requested capacity for validity |
| 285 | Status CheckCapacity(int64_t new_capacity) { |