| 618 | } |
| 619 | |
| 620 | std::function<void(int64*,size_t)> CoalescedHashTable::MakeReviserFn( |
| 621 | const string& name) { |
| 622 | string child_name = ChildName(name); |
| 623 | int64 index = index_map_[child_name]; |
| 624 | auto fn = [index] (int64* keys, size_t sz) { |
| 625 | for (size_t i = 0; i < sz; ++i) { |
| 626 | keys[i] = Encode(keys[i], index); |
| 627 | } |
| 628 | }; |
| 629 | return fn; |
| 630 | } |
| 631 | |
| 632 | void CoalescedHashTable::ClearChildren( |
| 633 | const std::vector<string>& table_names, |
no test coverage detected