let index = BasicAttrIndex::new()
index.insert("category", @types.String("electronics"), 123L)
let ids = index.find("category", @types.String("electronics"))fn BPTreeAttrIndex::range(self : BPTreeAttrIndex, key : String, range : NumericRange) -> Array[VectorId]?fn BasicAttrIndex::range(self : BasicAttrIndex, key : String, range : NumericRange) -> Array[VectorId]?fn BitmapAttrIndex::range(_self : BitmapAttrIndex, key : String, range : NumericRange) -> Array[VectorId]?pub struct BloomFilter {
bits : Bytes
hash_count : Int
bit_count : Int
}pub struct SSTable {
records : Array[SSTableRecord]
index : Array[SparseIndexEntry]
bloom : BloomFilter?
footer : SSTableFooter
}pub struct SSTableFooter {
magic : UInt
version : UInt
data_offset : Int
data_size : Int
index_offset : Int
index_size : Int
bloom_offset : Int
bloom_size : Int
}pub struct SSTableRecord {
key : Bytes
value : Bytes
}High-performance vector database with multiple ANN algorithms
Dependencies