| 757 | } |
| 758 | |
| 759 | Status Assemble(const std::shared_ptr<Array>& dictionary) { |
| 760 | // Make a dummy record batch. A bit tedious as we have to make a schema |
| 761 | auto schema = arrow::schema({arrow::field("dictionary", dictionary->type())}); |
| 762 | auto batch = RecordBatch::Make(std::move(schema), dictionary->length(), {dictionary}); |
| 763 | return RecordBatchSerializer::Assemble(*batch); |
| 764 | } |
| 765 | |
| 766 | private: |
| 767 | int64_t dictionary_id_; |
no test coverage detected