| 60 | }; |
| 61 | |
| 62 | bool PostBuilderHelper::Build(std::vector<vec_int_t>* uniq_nodes_list, |
| 63 | std::vector<vec_float_t>* uniq_freqs_list, |
| 64 | vec_int_t* total_freqs, int thread_num) { |
| 65 | uniq_nodes_list_ = uniq_nodes_list; |
| 66 | uniq_freqs_list_ = uniq_freqs_list; |
| 67 | total_freqs_ = total_freqs; |
| 68 | |
| 69 | Clear(); |
| 70 | Prepare(ns_size_, estimated_size_); |
| 71 | |
| 72 | return Process(store_->Keys(), thread_num); |
| 73 | } |
| 74 | |
| 75 | void PostBuilderHelper::Clear() noexcept { |
| 76 | uniq_nodes_list_->clear(); |