Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion demos/rocksdb_ivf/RocksDBInvertedLists.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ void RocksDBInvertedLists::resize(size_t /*list_no*/, size_t /*new_size*/) {
}

InvertedListsIterator* RocksDBInvertedLists::get_iterator(
size_t list_no) const {
size_t list_no,
void* inverted_list_context) const {
return new RocksDBInvertedListsIterator(db_.get(), list_no, code_size);
}

Expand Down
4 changes: 3 additions & 1 deletion demos/rocksdb_ivf/RocksDBInvertedLists.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ struct RocksDBInvertedLists : faiss::InvertedLists {

void resize(size_t list_no, size_t new_size) override;

faiss::InvertedListsIterator* get_iterator(size_t list_no) const override;
faiss::InvertedListsIterator* get_iterator(
size_t list_no,
void* inverted_list_context) const override;

private:
std::unique_ptr<rocksdb::DB> db_;
Expand Down