| 1609 | } |
| 1610 | |
| 1611 | Result<Datum> Finalize() override { |
| 1612 | ARROW_ASSIGN_OR_RAISE(auto null_bitmap, has_one_.Finish()); |
| 1613 | ARROW_ASSIGN_OR_RAISE(auto data, ones_.Finish()); |
| 1614 | return ArrayData::Make(out_type_, num_groups_, |
| 1615 | {std::move(null_bitmap), std::move(data)}); |
| 1616 | } |
| 1617 | |
| 1618 | std::shared_ptr<DataType> out_type() const override { return out_type_; } |
| 1619 |