\brief Return dictionary indices and a delta dictionary since the last time that Finish or FinishDelta were called, and reset state of builder (except the memo table)
| 493 | /// time that Finish or FinishDelta were called, and reset state of builder |
| 494 | /// (except the memo table) |
| 495 | Status FinishDelta(std::shared_ptr<Array>* out_indices, |
| 496 | std::shared_ptr<Array>* out_delta) { |
| 497 | std::shared_ptr<ArrayData> indices_data; |
| 498 | std::shared_ptr<ArrayData> delta_data; |
| 499 | ARROW_RETURN_NOT_OK(FinishWithDictOffset(delta_offset_, &indices_data, &delta_data)); |
| 500 | indices_data->type = MaybeUnsignedIndexType(indices_data->type, use_unsigned_index_); |
| 501 | *out_indices = MakeArray(indices_data); |
| 502 | *out_delta = MakeArray(delta_data); |
| 503 | return Status::OK(); |
| 504 | } |
| 505 | |
| 506 | /// \cond FALSE |
| 507 | using ArrayBuilder::Finish; |