|
Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
|
#include <lance/lance.h>
Public Attributes | |
| int32_t | index_type |
| int32_t | metric |
| LanceOptionalU64 | num_partitions |
| LanceOptionalU64 | target_partition_size |
| LanceOptionalU64 | max_iters |
| LanceOptionalU64 | sample_rate |
| LanceOptionalU64 | streaming_sample_rate |
| LanceOptionalU64 | streaming_coreset_rate |
| uint64_t | streaming_refine_passes |
| const char * | precomputed_partitions_file |
| const LancePrecomputedShuffleBuffers * | precomputed_shuffle_buffers |
| LanceOptionalU64 | shuffle_partition_batches |
| LanceOptionalU64 | shuffle_partition_concurrency |
| const LanceStringMap * | storage_options |
| LanceOptionalU64 | num_sub_vectors |
| LanceOptionalU64 | num_bits |
| struct ArrowArray * | ivf_centroids |
| const struct ArrowSchema * | ivf_centroids_schema |
| struct ArrowArray * | pq_codebook |
| const struct ArrowSchema * | pq_codebook_schema |
| const char * | rabitq_model_json |
| LanceOptionalU64 | hnsw_max_level |
| LanceOptionalU64 | hnsw_m |
| LanceOptionalU64 | hnsw_ef_construction |
| int32_t | index_file_version |
| bool | skip_transpose |
| const LanceStringMap * | runtime_hints |
| bool | has_train |
| bool | train |
Additive native vector-build options. Zero-initialize this structure.
Optional numeric fields distinguish absent (is_set == false) from an explicit value, including zero. Native Lance code owns defaults, validation timing and execution semantics. num_bits applies to IVF_PQ and IVF_RQ; absent PQ bits use the native default and an absent RQ value uses the native default of 5. num_partitions and target_partition_size may be absent for native automatic sizing.
ivf_centroids and pq_codebook are native Arrow C Data Interface FixedSizeList values. The whole options object is borrowed only for this call. A non-NULL ArrowArray may be replaced while a live caller-owned equivalent is left in place; the schema remains caller-owned. Both members of each pair must be NULL or non-NULL. Native model shape and dtype acceptance is not narrowed here.
rabitq_model_json is the native RabitQuantizationMetadata JSON accepted by IVF_RQ. Use lance_index_build_rq_model() to mint a portable fast rotation. runtime_hints may contain arbitrary UTF-8 keys and values and does not enable any accelerator execution in this binding.
has_train == false retains the native default train=true.
| LanceOptionalU64 LanceVectorIndexOptions::hnsw_ef_construction |
| LanceOptionalU64 LanceVectorIndexOptions::hnsw_m |
| LanceOptionalU64 LanceVectorIndexOptions::hnsw_max_level |
| struct ArrowArray* LanceVectorIndexOptions::ivf_centroids |
| const struct ArrowSchema* LanceVectorIndexOptions::ivf_centroids_schema |
| LanceOptionalU64 LanceVectorIndexOptions::max_iters |
| LanceOptionalU64 LanceVectorIndexOptions::num_bits |
| LanceOptionalU64 LanceVectorIndexOptions::num_partitions |
| LanceOptionalU64 LanceVectorIndexOptions::num_sub_vectors |
| struct ArrowArray* LanceVectorIndexOptions::pq_codebook |
| const struct ArrowSchema* LanceVectorIndexOptions::pq_codebook_schema |
| const char* LanceVectorIndexOptions::precomputed_partitions_file |
| const LancePrecomputedShuffleBuffers* LanceVectorIndexOptions::precomputed_shuffle_buffers |
| const LanceStringMap* LanceVectorIndexOptions::runtime_hints |
| LanceOptionalU64 LanceVectorIndexOptions::sample_rate |
| LanceOptionalU64 LanceVectorIndexOptions::shuffle_partition_batches |
| LanceOptionalU64 LanceVectorIndexOptions::shuffle_partition_concurrency |
| const LanceStringMap* LanceVectorIndexOptions::storage_options |
| LanceOptionalU64 LanceVectorIndexOptions::streaming_coreset_rate |
| LanceOptionalU64 LanceVectorIndexOptions::streaming_sample_rate |
| LanceOptionalU64 LanceVectorIndexOptions::target_partition_size |