12 #ifndef METAINDEXES_C_H
13 #define METAINDEXES_C_H
23 FAISS_DECLARE_CLASS_INHERITED(IndexIDMap, Index)
25 FAISS_DECLARE_GETTER_SETTER(IndexIDMap,
int, own_fields)
27 int faiss_IndexIDMap_new(FaissIndexIDMap** p_index, FaissIndex* index);
36 void faiss_IndexIDMap_id_map(FaissIndexIDMap* index,
long** p_id_map,
size_t* p_size);
40 FAISS_DECLARE_CLASS_INHERITED(IndexIDMap2, IndexIDMap)
42 int faiss_IndexIDMap2_new(FaissIndexIDMap2** p_index, FaissIndex* index);
45 int faiss_IndexIDMap2_construct_rev_map(FaissIndexIDMap2* index);
49 FAISS_DECLARE_CLASS_INHERITED(IndexShards, Index)
51 FAISS_DECLARE_GETTER_SETTER(IndexShards,
int, own_fields)
52 FAISS_DECLARE_GETTER_SETTER(IndexShards,
int, threaded)
53 FAISS_DECLARE_GETTER_SETTER(IndexShards,
int, successive_ids)
55 int faiss_IndexShards_new(FaissIndexShards** p_index, idx_t d);
57 int faiss_IndexShards_new_with_options(FaissIndexShards** p_index, idx_t d,
int threaded,
int successive_ids);
66 void faiss_IndexShards_shard_indexes(FaissIndexShards* index, FaissIndex** p_shard_indexes,
size_t* p_size);
68 int faiss_IndexShards_add_shard(FaissIndexShards* index, FaissIndex* shard);
71 int faiss_IndexShards_sync_with_shard_indexes(FaissIndexShards* index);
73 FaissIndex* faiss_IndexShards_at(FaissIndexShards* index,
int i);