MCPcopy Create free account
hub / github.com/apache/kvrocks / CreateCompactionFilter

Method CreateCompactionFilter

src/storage/compact_filter.h:168–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 explicit IndexFilterFactory(engine::Storage *storage) : stor_(storage) {}
167 const char *Name() const override { return "IndexFilterFactory"; }
168 std::unique_ptr<rocksdb::CompactionFilter> CreateCompactionFilter(
169 [[maybe_unused]] const rocksdb::CompactionFilter::Context &context) override {
170 return std::unique_ptr<rocksdb::CompactionFilter>(new IndexFilter(stor_));
171 }
172
173 private:
174 engine::Storage *stor_ = nullptr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected