Files
Aalekh Patel cda4f6e713 Expose IndexBinaryIVF.set_direct_map_type via the C API (#5451)
Summary:
Expose the `set_direct_map_type` method of binary IVF indexes via the C API. This enables support for the `index.set_direct_map_type` API in languages other than Python.

Pull Request resolved: https://github.com/facebookresearch/faiss/pull/5451

Reviewed By: alibeklfc

Differential Revision: D114681970

Pulled By: mnorris11

fbshipit-source-id: 1342eeb225d6fd9fdea76c6b9417cedde55c1d3a
2026-09-04 09:39:33 -07:00

28 lines
565 B
C

/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// -*- c -*-
#ifndef FAISS_DIRECT_MAP_C_H
#define FAISS_DIRECT_MAP_C_H
#ifdef __cplusplus
extern "C" {
#endif
typedef enum FaissDirectMapType {
DIRECT_MAP_NO_MAP = 0, // default
DIRECT_MAP_ARRAY = 1, // sequential ids (only for add, no add_with_ids)
DIRECT_MAP_HASHTABLE = 2, // arbitrary ids
} FaissDirectMapType;
#ifdef __cplusplus
}
#endif
#endif