| 100 | const char* InternalFilterPolicy::Name() const { return user_policy_->Name(); } |
| 101 | |
| 102 | void InternalFilterPolicy::CreateFilter(const Slice* keys, int n, |
| 103 | std::string* dst) const { |
| 104 | // We rely on the fact that the code in table.cc does not mind us |
| 105 | // adjusting keys[]. |
| 106 | Slice* mkey = const_cast<Slice*>(keys); |
| 107 | for (int i = 0; i < n; i++) { |
| 108 | mkey[i] = ExtractUserKey(keys[i]); |
| 109 | // TODO(sanjay): Suppress dups? |
| 110 | } |
| 111 | user_policy_->CreateFilter(keys, n, dst); |
| 112 | } |
| 113 | |
| 114 | bool InternalFilterPolicy::KeyMayMatch(const Slice& key, const Slice& f) const { |
| 115 | return user_policy_->KeyMayMatch(ExtractUserKey(key), f); |
nothing calls this directly
no test coverage detected