| 542 | } |
| 543 | |
| 544 | std::pair<BucketIdType, InnerIdType> |
| 545 | IVF::get_location(InnerIdType inner_id) const { |
| 546 | auto loc = this->location_map_[inner_id]; |
| 547 | constexpr uint64_t mask = (1ULL << LOCATION_SPLIT_BIT) - 1ULL; |
| 548 | auto bucket_id = static_cast<BucketIdType>(loc >> LOCATION_SPLIT_BIT); |
| 549 | auto offset_id = static_cast<InnerIdType>(loc & mask); |
| 550 | return {bucket_id, offset_id}; |
| 551 | } |
| 552 | |
| 553 | void |
| 554 | IVF::UpdateAttribute(int64_t id, const AttributeSet& new_attrs) { |
no outgoing calls
no test coverage detected