finish a column of scalar values (string or number)
| 620 | private: |
| 621 | /// finish a column of scalar values (string or number) |
| 622 | Status FinishScalar(const std::shared_ptr<Array>& scalar_values, ScalarBuilder* builder, |
| 623 | std::shared_ptr<Array>* out) { |
| 624 | std::shared_ptr<Array> indices; |
| 625 | // TODO(bkietz) embed builder->values_length() in this output somehow |
| 626 | RETURN_NOT_OK(builder->Finish(&indices)); |
| 627 | auto ty = dictionary(int32(), scalar_values->type()); |
| 628 | *out = std::make_shared<DictionaryArray>(ty, indices, scalar_values); |
| 629 | return Status::OK(); |
| 630 | } |
| 631 | |
| 632 | template <Kind::type kind> |
| 633 | std::vector<RawArrayBuilder<kind>>& arena() { |
nothing calls this directly
no test coverage detected