mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Add support functions for accessing arroy writers and readers
This commit is contained in:
parent
e172e938e7
commit
d35278320e
5 changed files with 28 additions and 26 deletions
|
@ -442,3 +442,9 @@ impl DistributionShift {
|
|||
pub const fn is_cuda_enabled() -> bool {
|
||||
cfg!(feature = "cuda")
|
||||
}
|
||||
|
||||
pub fn arroy_db_range_for_embedder(embedder_id: u8) -> impl Iterator<Item = u16> {
|
||||
let embedder_id = (embedder_id as u16) << 8;
|
||||
|
||||
(0..=u8::MAX).map(move |k| embedder_id | (k as u16))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue