| 265 | /// \brief Finish to an array of the specified ArrayType |
| 266 | template <typename ArrayType> |
| 267 | Status FinishTyped(std::shared_ptr<ArrayType>* out) { |
| 268 | std::shared_ptr<Array> out_untyped; |
| 269 | ARROW_RETURN_NOT_OK(Finish(&out_untyped)); |
| 270 | *out = std::static_pointer_cast<ArrayType>(std::move(out_untyped)); |
| 271 | return Status::OK(); |
| 272 | } |
| 273 | |
| 274 | // Check the requested capacity for validity |
| 275 | Status CheckCapacity(int64_t new_capacity) { |