feat: create bitmap and label list scalar index using python async api (#1529)

* Expose `bitmap` and `LabelList` scalar index type via Rust and Async
Python API
* Add documents
This commit is contained in:
Lei Xu
2024-08-11 09:16:11 -07:00
committed by GitHub
parent 613f3063b9
commit b2317c904d
9 changed files with 384 additions and 26 deletions

View File

@@ -84,6 +84,20 @@ impl Index {
inner: Mutex::new(Some(LanceDbIndex::BTree(BTreeIndexBuilder::default()))),
})
}
#[staticmethod]
pub fn bitmap() -> PyResult<Self> {
Ok(Self {
inner: Mutex::new(Some(LanceDbIndex::Bitmap(Default::default()))),
})
}
#[staticmethod]
pub fn label_list() -> PyResult<Self> {
Ok(Self {
inner: Mutex::new(Some(LanceDbIndex::LabelList(Default::default()))),
})
}
}
#[pyclass(get_all)]