repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/posting_list/src/lib.rs | lib/posting_list/src/lib.rs | mod builder;
mod iterator;
mod posting_list;
#[cfg(test)]
mod tests;
mod value_handler;
mod view;
mod visitor;
use bitpacking::BitPacker;
type BitPackerImpl = bitpacking::BitPacker4x;
/// How many elements are packed in a single chunk.
const CHUNK_LEN: usize = 128;
const _: () = assert!(128 == BitPackerImpl::BLOCK_L... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/posting_list/src/tests.rs | lib/posting_list/src/tests.rs | use std::collections::HashMap;
use common::types::PointOffsetType;
use rand::distr::{Alphanumeric, SampleString};
use rand::rngs::StdRng;
use rand::{Rng, SeedableRng};
use crate::{CHUNK_LEN, PostingBuilder, PostingList, PostingValue, UnsizedHandler, UnsizedValue};
// Simple struct that implements VarSizedValue for t... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/posting_list/src/view.rs | lib/posting_list/src/view.rs | use std::marker::PhantomData;
use std::ops::RangeInclusive;
use bitpacking::BitPacker;
use common::types::PointOffsetType;
use zerocopy::little_endian::U32;
use crate::iterator::PostingIterator;
use crate::posting_list::RemainderPosting;
use crate::value_handler::PostingValue;
use crate::visitor::PostingVisitor;
use ... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/posting_list/src/posting_list.rs | lib/posting_list/src/posting_list.rs | use std::borrow::Borrow;
use std::marker::PhantomData;
use common::types::PointOffsetType;
use zerocopy::little_endian::U32;
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};
use crate::iterator::PostingIterator;
use crate::value_handler::PostingValue;
use crate::view::PostingListView;
use crate::visitor:... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/posting_list/src/iterator.rs | lib/posting_list/src/iterator.rs | use std::iter::FusedIterator;
use common::types::PointOffsetType;
use crate::PostingElement;
use crate::value_handler::PostingValue;
use crate::visitor::PostingVisitor;
pub struct PostingIterator<'a, V: PostingValue> {
visitor: PostingVisitor<'a, V>,
current_elem: Option<PostingElement<V>>,
offset: usize... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/posting_list/src/value_handler.rs | lib/posting_list/src/value_handler.rs | use std::fmt::Debug;
use std::marker::PhantomData;
use zerocopy::little_endian::U32;
use crate::{SizedValue, UnsizedValue};
/// Trait for types that can be used as posting list values
///
/// This trait associates a value type with its appropriate handler.
pub trait PostingValue: Clone {
type Handler: ValueHandl... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/build.rs | lib/segment/build.rs | use std::env;
fn main() {
let target_arch = env::var("CARGO_CFG_TARGET_ARCH")
.expect("CARGO_CFG_TARGET_ARCH env-var is not defined or is not UTF-8");
// TODO: Is `CARGO_CFG_TARGET_FEATURE` *always* defined?
//
// Cargo docs says that "boolean configurations are present if they are set,
//... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/lib.rs | lib/segment/src/lib.rs | pub mod common;
pub mod entry;
#[cfg(feature = "testing")]
pub mod fixtures;
pub mod id_tracker;
pub mod index;
pub mod payload_storage;
#[cfg(feature = "rocksdb")]
pub mod rocksdb_backup;
pub mod segment;
pub mod segment_constructor;
pub mod spaces;
pub mod telemetry;
mod compat;
pub mod data_types;
pub mod json_path... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/telemetry.rs | lib/segment/src/telemetry.rs | use schemars::JsonSchema;
use serde::Serialize;
use crate::common::anonymize::Anonymize;
use crate::common::operation_time_statistics::OperationDurationStatistics;
use crate::types::{SegmentConfig, SegmentInfo, VectorNameBuf};
#[derive(Serialize, Clone, Debug, JsonSchema, Anonymize)]
pub struct SegmentTelemetry {
... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/types.rs | lib/segment/src/types.rs | use std::borrow::Cow;
use std::cmp::Ordering;
use std::collections::{BTreeMap, HashMap, HashSet};
use std::fmt::{self, Display, Formatter};
use std::hash::{self, Hash, Hasher};
use std::mem;
use std::ops::Deref;
use std::rc::Rc;
use std::str::FromStr;
use std::sync::Arc;
use ahash::AHashSet;
use common::stable_hash::S... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/rocksdb_backup.rs | lib/segment/src/rocksdb_backup.rs | use std::path::Path;
use fs_err as fs;
use crate::common::operation_error::{OperationError, OperationResult};
pub fn create(db: &rocksdb::DB, backup_path: &Path) -> OperationResult<()> {
if !backup_path.exists() {
create_dir_all(backup_path)?;
} else if !backup_path.is_dir() {
return Err(not_... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/compat.rs | lib/segment/src/compat.rs | #![allow(deprecated)]
use std::collections::HashMap;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use crate::types::{
Distance, HnswConfig, Indexes, PayloadStorageType, QuantizationConfig, SegmentConfig,
SegmentState, SeqNumberType, VectorDataConfig, VectorNameBuf, VectorStorageType,
};
#[... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/id_tracker/point_mappings.rs | lib/segment/src/id_tracker/point_mappings.rs | use std::collections::BTreeMap;
#[cfg(test)]
use std::collections::btree_map::Entry;
use std::iter;
use bitvec::prelude::{BitSlice, BitVec};
use byteorder::LittleEndian;
#[cfg(test)]
use common::bitpacking::make_bitmask;
use common::types::PointOffsetType;
use itertools::Itertools;
#[cfg(test)]
use rand::Rng as _;
use... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/id_tracker/in_memory_id_tracker.rs | lib/segment/src/id_tracker/in_memory_id_tracker.rs | use std::path::PathBuf;
use bitvec::prelude::BitSlice;
use common::types::PointOffsetType;
#[cfg(test)]
use rand::Rng as _;
#[cfg(test)]
use rand::rngs::StdRng;
use crate::common::Flusher;
use crate::common::operation_error::OperationResult;
use crate::id_tracker::point_mappings::PointMappings;
use crate::id_tracker:... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/id_tracker/mod.rs | lib/segment/src/id_tracker/mod.rs | pub mod compressed;
pub mod id_tracker_base;
pub mod immutable_id_tracker;
pub mod in_memory_id_tracker;
pub mod mutable_id_tracker;
pub mod point_mappings;
#[cfg(feature = "rocksdb")]
pub mod simple_id_tracker;
use common::types::PointOffsetType;
pub use id_tracker_base::*;
use itertools::Itertools as _;
use crate::... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/id_tracker/simple_id_tracker.rs | lib/segment/src/id_tracker/simple_id_tracker.rs | use std::collections::BTreeMap;
use std::path::PathBuf;
use std::sync::Arc;
use bincode;
use bitvec::prelude::{BitSlice, BitVec};
use common::types::PointOffsetType;
use parking_lot::RwLock;
use rocksdb::DB;
use serde::{Deserialize, Serialize};
use uuid::Uuid;
use crate::common::Flusher;
use crate::common::operation_... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/id_tracker/id_tracker_base.rs | lib/segment/src/id_tracker/id_tracker_base.rs | use std::fmt;
use std::path::PathBuf;
use bitvec::prelude::BitSlice;
use common::ext::BitSliceExt as _;
use common::types::PointOffsetType;
use rand::rngs::StdRng;
use rand::{Rng, SeedableRng};
use super::in_memory_id_tracker::InMemoryIdTracker;
use super::mutable_id_tracker::MutableIdTracker;
use crate::common::Flus... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/id_tracker/immutable_id_tracker.rs | lib/segment/src/id_tracker/immutable_id_tracker.rs | use std::io::{BufRead, BufReader, BufWriter, Read, Write};
use std::mem::{size_of, size_of_val};
use std::path::{Path, PathBuf};
use bitvec::prelude::BitSlice;
use bitvec::vec::BitVec;
use byteorder::{ReadBytesExt, WriteBytesExt};
use common::ext::BitSliceExt as _;
use common::types::PointOffsetType;
use fs_err::File;... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/id_tracker/mutable_id_tracker.rs | lib/segment/src/id_tracker/mutable_id_tracker.rs | use std::collections::BTreeMap;
use std::io::{self, BufReader, BufWriter, Read, Seek, Write};
use std::path::{Path, PathBuf};
use std::sync::Arc;
use bitvec::prelude::{BitSlice, BitVec};
use byteorder::{ReadBytesExt, WriteBytesExt};
use common::is_alive_lock::IsAliveLock;
use common::types::PointOffsetType;
use fs_err... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/id_tracker/compressed/compressed_point_mappings.rs | lib/segment/src/id_tracker/compressed/compressed_point_mappings.rs | #[cfg(test)]
use std::collections::BTreeMap;
#[cfg(test)]
use std::collections::btree_map::Entry;
use std::iter;
use bitvec::prelude::{BitSlice, BitVec};
use byteorder::LittleEndian;
#[cfg(test)]
use common::bitpacking::make_bitmask;
use common::types::PointOffsetType;
use itertools::Itertools;
#[cfg(test)]
use rand::... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/id_tracker/compressed/mod.rs | lib/segment/src/id_tracker/compressed/mod.rs | pub mod compressed_point_mappings;
pub mod external_to_internal;
pub mod internal_to_external;
pub mod versions_store;
| rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/id_tracker/compressed/versions_store.rs | lib/segment/src/id_tracker/compressed/versions_store.rs | use ahash::AHashMap;
use common::types::PointOffsetType;
use crate::types::SeqNumberType;
/// Compressed representation of Vec<SeqNumberType>
/// Which takes advantage of the fact that the sequence numbers are likely to be < 2**32
///
/// Implements a required subset of the Vec API:
///
/// * get by index
/// * set b... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/id_tracker/compressed/external_to_internal.rs | lib/segment/src/id_tracker/compressed/external_to_internal.rs | use std::collections::BTreeMap;
use bitvec::prelude::BitVec;
use common::types::PointOffsetType;
use itertools::Either;
use uuid::Uuid;
use crate::types::PointIdType;
/// A compressed representation of
///
/// - `external_to_internal_num: BTreeMap<u64, PointOffsetType>`
/// - `external_to_internal_uuid: BTreeMap<Uui... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/id_tracker/compressed/internal_to_external.rs | lib/segment/src/id_tracker/compressed/internal_to_external.rs | use bitvec::prelude::BitVec;
use common::types::PointOffsetType;
use uuid::Uuid;
use crate::types::PointIdType;
/// A compressed representation of `internal_to_external: Vec<PointIdType>`.
///
/// The main idea is instead of `PointIdType` enum (which is 24 bytes) we use one
/// Vec<u128> and bitmask which defines if ... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/entry/mod.rs | lib/segment/src/entry/mod.rs | pub mod entry_point;
pub mod snapshot_entry;
pub use entry_point::SegmentEntry;
pub use snapshot_entry::SnapshotEntry;
| rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/entry/snapshot_entry.rs | lib/segment/src/entry/snapshot_entry.rs | use std::path::Path;
use common::tar_ext;
use crate::common::operation_error::OperationResult;
use crate::data_types::manifest::SnapshotManifest;
use crate::types::SnapshotFormat;
pub trait SnapshotEntry {
/// Take a snapshot of the segment.
///
/// Creates a tar archive of the segment directory into `sn... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/entry/entry_point.rs | lib/segment/src/entry/entry_point.rs | use std::collections::{BTreeSet, HashMap, HashSet};
use std::path::PathBuf;
use std::sync::Arc;
use std::sync::atomic::AtomicBool;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::TelemetryDetail;
use crate::common::Flusher;
use crate::common::operation_error::{OperationError, OperationR... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/key_encoding.rs | lib/segment/src/index/key_encoding.rs | const FLOAT_NAN: u8 = 0x00;
const FLOAT_NEG: u8 = 0x01;
const FLOAT_ZERO: u8 = 0x02;
const FLOAT_POS: u8 = 0x03;
const F64_KEY_LEN: usize = 13;
const I64_KEY_LEN: usize = 12;
const U128_KEY_LEN: usize = 20;
/// Encode a f64 into `buf`
///
/// The encoded format for a f64 is :
///
/// **for positives:** the f64 bits (... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/payload_config.rs | lib/segment/src/index/payload_config.rs | use std::collections::HashMap;
use std::ops::{Deref, DerefMut};
use std::path::{Path, PathBuf};
use io::file_operations::{atomic_save_json, read_json};
use serde::{Deserialize, Serialize};
use crate::common::operation_error::OperationResult;
use crate::types::{PayloadFieldSchema, PayloadKeyType};
pub const PAYLOAD_I... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/query_estimator.rs | lib/segment/src/index/query_estimator.rs | //! Contains functions for estimating of how many points should be processed for a given filter query
//!
//! Filter query is used e.g. for determining how would be faster to process the query:
//! - use vector index or payload index first
use std::cmp::{max, min};
use itertools::Itertools;
use crate::index::field_i... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/struct_payload_index.rs | lib/segment/src/index/struct_payload_index.rs | use std::collections::HashMap;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use std::sync::atomic::AtomicBool;
use atomic_refcell::AtomicRefCell;
use common::counter::hardware_counter::HardwareCounterCell;
use common::counter::iterator_hw_measurement::HwMeasurementIteratorExt;
use common::either_variant::Either... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/plain_payload_index.rs | lib/segment/src/index/plain_payload_index.rs | use std::collections::HashMap;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use std::sync::atomic::AtomicBool;
use atomic_refcell::AtomicRefCell;
use common::counter::hardware_counter::HardwareCounterCell;
use common::iterator_ext::IteratorExt;
use common::types::PointOffsetType;
use fs_err as fs;
use schemars:... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/payload_index_base.rs | lib/segment/src/index/payload_index_base.rs | use std::collections::HashMap;
use std::path::PathBuf;
use std::sync::atomic::AtomicBool;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use serde_json::Value;
use super::field_index::FieldIndex;
use crate::common::Flusher;
use crate::common::operation_error::Operation... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/vector_index_base.rs | lib/segment/src/index/vector_index_base.rs | use std::collections::HashMap;
use std::path::PathBuf;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::{PointOffsetType, ScoredPointOffset, TelemetryDetail};
use half::f16;
use sparse::common::types::{DimId, QuantizedU8};
use sparse::index::inverted_index::InvertedIndex;
use sparse::inde... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/mod.rs | lib/segment/src/index/mod.rs | pub mod field_index;
pub mod hnsw_index;
mod key_encoding;
pub mod payload_config;
mod payload_index_base;
pub mod plain_payload_index;
pub mod plain_vector_index;
pub mod query_estimator;
pub mod query_optimization;
mod sample_estimation;
pub mod sparse_index;
mod struct_filter_context;
pub mod struct_payload_index;
p... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/plain_vector_index.rs | lib/segment/src/index/plain_vector_index.rs | use std::path::PathBuf;
use std::sync::Arc;
use atomic_refcell::AtomicRefCell;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::{PointOffsetType, ScoredPointOffset, TelemetryDetail};
use parking_lot::Mutex;
use super::hnsw_index::point_scorer::BatchFilteredSearcher;
use crate::common::BY... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/vector_index_search_common.rs | lib/segment/src/index/vector_index_search_common.rs | use bitvec::slice::BitSlice;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::ScoredPointOffset;
use itertools::Itertools;
use crate::common::operation_error::OperationResult;
use crate::data_types::vectors::QueryVector;
use crate::index::hnsw_index::point_scorer::FilteredScorer;
use crat... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/struct_filter_context.rs | lib/segment/src/index/struct_filter_context.rs | use common::types::PointOffsetType;
use crate::index::query_optimization::optimized_filter::{OptimizedFilter, check_optimized_filter};
use crate::payload_storage::FilterContext;
pub struct StructFilterContext<'a> {
optimized_filter: OptimizedFilter<'a>,
}
impl<'a> StructFilterContext<'a> {
pub fn new(optimiz... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/sample_estimation.rs | lib/segment/src/index/sample_estimation.rs | use std::cmp::{max, min};
use common::types::PointOffsetType;
const MAX_ESTIMATED_POINTS: usize = 1000;
/// How many points do we need to check in order to estimate expected query cardinality.
/// Based on <https://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval>
#[allow(dead_code)]
fn estimate_require... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/visited_pool.rs | lib/segment/src/index/visited_pool.rs | //! Structures for fast and tread-safe way to check if some points were visited or not
use common::defaults::POOL_KEEP_LIMIT;
use common::types::PointOffsetType;
use parking_lot::RwLock;
/// Visited list handle is an owner of the `VisitedList`, which is returned by `VisitedPool` and returned back to it
#[derive(Debug... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/entry_points.rs | lib/segment/src/index/hnsw_index/entry_points.rs | use std::cmp::Ordering;
use common::fixed_length_priority_queue::FixedLengthPriorityQueue;
use common::types::PointOffsetType;
use rand::Rng;
use serde::{Deserialize, Serialize};
#[derive(Deserialize, Serialize, Clone, Debug, PartialEq)]
pub struct EntryPoint {
pub point_id: PointOffsetType,
pub level: usize,... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/config.rs | lib/segment/src/index/hnsw_index/config.rs | use std::path::{Path, PathBuf};
use io::file_operations::{atomic_save_json, read_json};
use serde::{Deserialize, Serialize};
use crate::common::operation_error::OperationResult;
pub const HNSW_INDEX_CONFIG_FILE: &str = "hnsw_config.json";
#[derive(Debug, Deserialize, Serialize, Copy, Clone, PartialEq, Eq)]
pub stru... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/build_condition_checker.rs | lib/segment/src/index/hnsw_index/build_condition_checker.rs | use common::types::PointOffsetType;
use crate::index::visited_pool::VisitedListHandle;
use crate::payload_storage::FilterContext;
pub struct BuildConditionChecker<'a> {
pub filter_list: &'a VisitedListHandle<'a>,
pub current_point: PointOffsetType,
}
impl FilterContext for BuildConditionChecker<'_> {
fn ... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/graph_links.rs | lib/segment/src/index/hnsw_index/graph_links.rs | use std::alloc::Layout;
use std::io::Cursor;
use std::path::Path;
use std::sync::Arc;
use common::types::PointOffsetType;
use memmap2::Mmap;
use memory::madvise::{Advice, AdviceSetting, Madviseable};
use memory::mmap_ops::open_read_mmap;
use crate::common::operation_error::{OperationError, OperationResult};
use crate... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/hnsw.rs | lib/segment/src/index/hnsw_index/hnsw.rs | use std::ops::Deref as _;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
use std::thread;
use atomic_refcell::{AtomicRef, AtomicRefCell};
use bitvec::prelude::BitSlice;
use bitvec::vec::BitVec;
use common::counter::hardware_counter::HardwareCounterCell;
us... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/search_context.rs | lib/segment/src/index/hnsw_index/search_context.rs | use std::collections::BinaryHeap;
use common::fixed_length_priority_queue::FixedLengthPriorityQueue;
use common::types::{ScoreType, ScoredPointOffset};
use num_traits::float::FloatCore;
/// Structure that holds context of the search
pub struct SearchContext {
/// Overall nearest points found so far
pub neares... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/point_scorer.rs | lib/segment/src/index/hnsw_index/point_scorer.rs | use std::sync::atomic::AtomicBool;
use bitvec::slice::BitSlice;
use common::counter::hardware_counter::HardwareCounterCell;
use common::cow::BoxCow;
use common::fixed_length_priority_queue::FixedLengthPriorityQueue;
use common::types::{PointOffsetType, ScoreType, ScoredPointOffset};
use smallvec::SmallVec;
use crate:... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/build_cache.rs | lib/segment/src/index/hnsw_index/build_cache.rs | use std::cmp::{max, min};
use std::hash::{Hash, Hasher};
use common::types::{PointOffsetType, ScoreType};
use seahash::SeaHasher;
#[derive(Hash, Eq, PartialEq, Clone, Debug)]
struct PointPair {
a: PointOffsetType,
b: PointOffsetType,
}
impl PointPair {
pub fn new(a: PointOffsetType, b: PointOffsetType) -... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/graph_layers.rs | lib/segment/src/index/hnsw_index/graph_layers.rs | //! # Search on level functions
//!
//! This module contains multiple variations of the SEARCH-LAYER function.
//! All of them implement a beam (greedy) search for closest points within a
//! single graph layer.
//!
//! - [`GraphLayersBase::search_on_level`]
//! Regular search, as described in the original HNSW paper... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/graph_layers_builder.rs | lib/segment/src/index/hnsw_index/graph_layers_builder.rs | use std::borrow::Cow;
use std::cmp::{max, min};
use std::io::Write;
use std::ops::ControlFlow;
use std::path::Path;
use std::sync::atomic::{AtomicBool, AtomicUsize};
use bitvec::prelude::BitVec;
use common::ext::BitSliceExt;
use common::fixed_length_priority_queue::FixedLengthPriorityQueue;
use common::types::{PointOf... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/graph_layers_healer.rs | lib/segment/src/index/hnsw_index/graph_layers_healer.rs | use common::counter::hardware_counter::HardwareCounterCell;
use common::fixed_length_priority_queue::FixedLengthPriorityQueue;
use common::types::{PointOffsetType, ScoredPointOffset};
use parking_lot::RwLock;
use rayon::ThreadPool;
use rayon::iter::{IntoParallelIterator as _, ParallelIterator as _};
use crate::common:... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/links_container.rs | lib/segment/src/index/hnsw_index/links_container.rs | use std::cell::Cell;
use std::iter::Copied;
use std::num::NonZeroU32;
use common::types::{PointOffsetType, ScoreType, ScoredPointOffset};
use crate::common::vector_utils::TrySetCapacityExact as _;
pub struct LinksContainer {
links: Vec<PointOffsetType>,
/// Number of links that have been processed by the heu... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/mod.rs | lib/segment/src/index/hnsw_index/mod.rs | use common::defaults::thread_count_for_hnsw;
mod build_cache;
pub mod build_condition_checker;
mod config;
mod entry_points;
pub mod graph_layers;
pub mod graph_layers_builder;
mod graph_layers_healer;
pub mod graph_links;
pub mod hnsw;
mod links_container;
pub mod point_scorer;
mod search_context;
#[cfg(feature = "g... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/gpu/gpu_devices_manager.rs | lib/segment/src/index/hnsw_index/gpu/gpu_devices_manager.rs | use std::sync::Arc;
use std::sync::atomic::AtomicBool;
use itertools::Itertools;
use parking_lot::{Mutex, MutexGuard};
use crate::common::check_stopped;
use crate::common::operation_error::OperationResult;
/// Simple non-invasive permits to use GPU devices.
pub struct GpuDevicesMaganer {
devices: Vec<Mutex<Arc<g... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/gpu/gpu_heap_tests.rs | lib/segment/src/index/hnsw_index/gpu/gpu_heap_tests.rs | //! Unit tests for GPU heap shader.
use std::collections::{BinaryHeap, HashMap};
use common::fixed_length_priority_queue::FixedLengthPriorityQueue;
use common::types::{PointOffsetType, ScoredPointOffset};
use rand::rngs::StdRng;
use rand::{Rng, SeedableRng};
use rstest::rstest;
use zerocopy::{FromBytes, Immutable, In... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/gpu/gpu_links.rs | lib/segment/src/index/hnsw_index/gpu/gpu_links.rs | use std::collections::HashMap;
use std::sync::Arc;
use std::sync::atomic::AtomicBool;
use common::types::PointOffsetType;
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};
use super::shader_builder::ShaderBuilderParameters;
use crate::common::check_stopped;
use crate::common::operation_error::{OperationEr... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/gpu/batched_points.rs | lib/segment/src/index/hnsw_index/gpu/batched_points.rs | use std::ops::Range;
use std::sync::atomic::AtomicU32;
use common::types::PointOffsetType;
use crate::common::operation_error::OperationResult;
/// Pending point params (entry and level).
#[derive(Debug)]
pub struct PointLinkingData {
pub point_id: PointOffsetType,
pub level: usize,
pub entry: AtomicU32,... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/gpu/gpu_visited_flags.rs | lib/segment/src/index/hnsw_index/gpu/gpu_visited_flags.rs | use std::collections::HashMap;
use std::sync::Arc;
use common::types::PointOffsetType;
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};
use super::GPU_TIMEOUT;
use super::shader_builder::ShaderBuilderParameters;
use crate::common::operation_error::{OperationError, OperationResult};
const UPLOAD_REMAP_BU... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/gpu/shader_builder.rs | lib/segment/src/index/hnsw_index/gpu/shader_builder.rs | use std::collections::HashMap;
use std::sync::Arc;
use crate::common::operation_error::OperationResult;
pub struct ShaderBuilder {
device: Arc<gpu::Device>,
shader_code: String,
includes: HashMap<String, String>,
defines: HashMap<String, Option<String>>,
}
pub trait ShaderBuilderParameters {
fn s... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/gpu/mod.rs | lib/segment/src/index/hnsw_index/gpu/mod.rs | pub mod batched_points;
pub mod gpu_devices_manager;
pub mod gpu_graph_builder;
pub mod gpu_insert_context;
pub mod gpu_level_builder;
pub mod gpu_links;
pub mod gpu_vector_storage;
pub mod gpu_visited_flags;
pub mod shader_builder;
#[cfg(test)]
mod gpu_heap_tests;
use std::sync::atomic::{AtomicBool, AtomicUsize, Ord... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/gpu/gpu_insert_context.rs | lib/segment/src/index/hnsw_index/gpu/gpu_insert_context.rs | use std::collections::HashMap;
use std::sync::Arc;
use std::sync::atomic::AtomicBool;
use common::types::PointOffsetType;
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};
use super::GPU_TIMEOUT;
use super::gpu_links::GpuLinks;
use super::gpu_vector_storage::GpuVectorStorage;
use super::gpu_visited_flags:... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/gpu/gpu_graph_builder.rs | lib/segment/src/index/hnsw_index/gpu/gpu_graph_builder.rs | use std::sync::atomic::AtomicBool;
use common::types::PointOffsetType;
use crate::common::check_stopped;
use crate::common::operation_error::OperationResult;
use crate::index::hnsw_index::gpu::batched_points::BatchedPoints;
use crate::index::hnsw_index::gpu::create_graph_layers_builder;
use crate::index::hnsw_index::... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/gpu/gpu_level_builder.rs | lib/segment/src/index/hnsw_index/gpu/gpu_level_builder.rs | use std::sync::atomic::{AtomicBool, Ordering};
use common::types::PointOffsetType;
use super::batched_points::{Batch, BatchedPoints};
use super::gpu_insert_context::GpuInsertContext;
use crate::common::check_stopped;
use crate::common::operation_error::OperationResult;
use crate::index::hnsw_index::gpu::gpu_insert_co... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/gpu/gpu_vector_storage/gpu_quantization.rs | lib/segment/src/index/hnsw_index/gpu/gpu_vector_storage/gpu_quantization.rs | use std::collections::HashMap;
use std::sync::Arc;
use common::types::PointOffsetType;
use quantization::encoded_vectors_binary::{BitsStoreType, EncodedVectorsBin};
use quantization::{EncodedStorage, EncodedVectors, EncodedVectorsPQ, EncodedVectorsU8};
use super::{GpuVectorStorage, STORAGES_COUNT};
use crate::common:... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/gpu/gpu_vector_storage/tests.rs | lib/segment/src/index/hnsw_index/gpu/gpu_vector_storage/tests.rs | //! Unit tests for GPU vector storage, covering f32, f16, u8 dense/multivectors with SQ, BQ, PQ.
use std::path::Path;
use common::counter::hardware_counter::HardwareCounterCell;
use parking_lot::RwLock;
use rand::rngs::StdRng;
use rand::{Rng, SeedableRng};
use rocksdb::DB;
use rstest::rstest;
use super::*;
use crate... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/gpu/gpu_vector_storage/mod.rs | lib/segment/src/index/hnsw_index/gpu/gpu_vector_storage/mod.rs | mod gpu_multivectors;
mod gpu_quantization;
#[cfg(test)]
mod tests;
use std::borrow::Cow;
use std::collections::HashMap;
use std::sync::Arc;
use std::sync::atomic::AtomicBool;
use common::types::PointOffsetType;
use gpu_multivectors::GpuMultivectors;
use gpu_quantization::GpuQuantization;
use quantization::encoded_v... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/gpu/gpu_vector_storage/gpu_multivectors.rs | lib/segment/src/index/hnsw_index/gpu/gpu_vector_storage/gpu_multivectors.rs | use std::collections::HashMap;
use std::sync::Arc;
use common::types::PointOffsetType;
use quantization::EncodedVectors;
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};
use super::STORAGES_COUNT;
use super::gpu_quantization::MAX_QUANTIZATION_BINDINGS;
use crate::common::operation_error::OperationResult;... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/tests/mod.rs | lib/segment/src/index/hnsw_index/tests/mod.rs | mod test_compact_graph_layer;
mod test_graph_connectivity;
use common::types::PointOffsetType;
use rand::Rng;
use super::graph_links::GraphLinksFormat;
use crate::fixtures::index_fixtures::TestRawScorerProducer;
use crate::index::hnsw_index::HnswM;
use crate::index::hnsw_index::graph_layers::GraphLayers;
use crate::i... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/tests/test_compact_graph_layer.rs | lib/segment/src/index/hnsw_index/tests/test_compact_graph_layer.rs | use std::cmp::max;
use common::types::ScoredPointOffset;
use itertools::Itertools;
use rand::SeedableRng;
use rand::prelude::StdRng;
use rstest::rstest;
use crate::fixtures::index_fixtures::random_vector;
use crate::index::hnsw_index::graph_layers::{GraphLayersBase, SearchAlgorithm};
use crate::index::hnsw_index::gra... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/tests/test_graph_connectivity.rs | lib/segment/src/index/hnsw_index/tests/test_graph_connectivity.rs | use std::sync::Arc;
use std::sync::atomic::AtomicBool;
use common::budget::ResourcePermit;
use common::counter::hardware_counter::HardwareCounterCell;
use common::flags::FeatureFlags;
use common::progress_tracker::ProgressTracker;
use common::types::PointOffsetType;
use rand::rng;
use tempfile::Builder;
use crate::da... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/graph_links/serializer.rs | lib/segment/src/index/hnsw_index/graph_links/serializer.rs | use std::alloc::Layout;
use std::cmp::Reverse;
use std::io::{Seek, Write};
use common::bitpacking::packed_bits;
use common::bitpacking_links::{MIN_BITS_PER_VALUE, pack_links};
use common::bitpacking_ordered;
use common::types::PointOffsetType;
use common::zeros::WriteZerosExt;
use integer_encoding::{VarInt, VarIntWrit... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/graph_links/view.rs | lib/segment/src/index/hnsw_index/graph_links/view.rs | use std::alloc::Layout;
use std::iter::{Copied, Zip};
use std::num::NonZero;
use common::bitpacking::packed_bits;
use common::bitpacking_links::{
MIN_BITS_PER_VALUE, PackedLinksIterator, iterate_packed_links, packed_links_size,
};
use common::bitpacking_ordered;
use common::types::PointOffsetType;
use integer_enco... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/hnsw_index/graph_links/header.rs | lib/segment/src/index/hnsw_index/graph_links/header.rs | use std::alloc::Layout;
use common::bitpacking_ordered;
use zerocopy::little_endian::U64 as LittleU64;
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};
use crate::common::operation_error::{OperationError, OperationResult};
/// File header for the plain format.
#[derive(FromBytes, Immutable, IntoBytes, K... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/query_optimization/optimized_filter.rs | lib/segment/src/index/query_optimization/optimized_filter.rs | use common::types::PointOffsetType;
pub type ConditionCheckerFn<'a> = Box<dyn Fn(PointOffsetType) -> bool + 'a>;
pub enum OptimizedCondition<'a> {
Checker(ConditionCheckerFn<'a>),
/// Nested filter
Filter(OptimizedFilter<'a>),
}
pub struct OptimizedMinShould<'a> {
pub conditions: Vec<OptimizedConditi... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/query_optimization/payload_provider.rs | lib/segment/src/index/query_optimization/payload_provider.rs | use std::ops::Deref;
use std::sync::Arc;
use atomic_refcell::AtomicRefCell;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use crate::payload_storage::PayloadStorage;
use crate::payload_storage::payload_storage_enum::PayloadStorageEnum;
use crate::types::{OwnedPayloadR... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/query_optimization/condition_converter.rs | lib/segment/src/index/query_optimization/condition_converter.rs | use std::collections::HashMap;
use ahash::AHashSet;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use match_converter::get_match_checkers;
use ordered_float::OrderedFloat;
use serde_json::Value;
use crate::i... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/query_optimization/optimizer.rs | lib/segment/src/index/query_optimization/optimizer.rs | use std::cmp::Reverse;
use common::counter::hardware_counter::HardwareCounterCell;
use itertools::Itertools;
use crate::index::field_index::CardinalityEstimation;
use crate::index::query_estimator::{
combine_min_should_estimations, combine_must_estimations, combine_should_estimations,
invert_estimation,
};
us... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/query_optimization/mod.rs | lib/segment/src/index/query_optimization/mod.rs | pub mod condition_converter;
pub mod optimized_filter;
pub mod optimizer;
pub mod payload_provider;
pub mod rescore_formula;
| rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/query_optimization/rescore_formula/parsed_formula.rs | lib/segment/src/index/query_optimization/rescore_formula/parsed_formula.rs | use std::collections::{HashMap, HashSet};
use std::hash::{Hash, Hasher};
use std::str::FromStr;
use common::types::ScoreType;
use ordered_float::OrderedFloat;
use serde::Serialize;
use serde_json::Value;
use crate::common::operation_error::{OperationError, OperationResult};
use crate::common::utils::unordered_hash_un... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/query_optimization/rescore_formula/value_retriever.rs | lib/segment/src/index/query_optimization/rescore_formula/value_retriever.rs | #![allow(dead_code)] // TODO: remove this
use std::collections::{HashMap, HashSet};
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use serde_json::{Number, Value};
use crate::common::utils::MultiValue;
use crate::index::field_index::FieldIndex;
use crate::index::query_... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/query_optimization/rescore_formula/mod.rs | lib/segment/src/index/query_optimization/rescore_formula/mod.rs | mod formula_scorer;
pub mod parsed_formula;
mod value_retriever;
| rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/query_optimization/rescore_formula/formula_scorer.rs | lib/segment/src/index/query_optimization/rescore_formula/formula_scorer.rs | use std::collections::HashMap;
use std::ops::Neg;
use ahash::AHashMap;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::{PointOffsetType, ScoreType};
use geo::{Distance, Haversine};
use serde_json::Value;
use super::parsed_formula::{
DatetimeExpression, DecayKind, ParsedExpression, P... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/query_optimization/condition_converter/match_converter.rs | lib/segment/src/index/query_optimization/condition_converter/match_converter.rs | use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::types::PointOffsetType;
use indexmap::IndexSet;
use uuid::Uuid;
use crate::index::field_index::FieldIndex;
use crate::index::query_optimization::optimized_filter::ConditionCheckerFn;
use crate::payload_storage::condition_checker::INDEXSET_ITER_TH... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/field_index/geo_hash.rs | lib/segment/src/index/field_index/geo_hash.rs | use std::fmt::Display;
use std::ops::{Index, Range};
use ecow::EcoString;
use geo::{Coord, Distance, Haversine, Intersects, LineString, Point, Polygon};
use geohash::{Direction, GeohashError, decode, decode_bbox, encode};
use itertools::Itertools;
use ordered_float::OrderedFloat;
use crate::common::operation_error::{... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/field_index/field_index_base.rs | lib/segment/src/index/field_index/field_index_base.rs | use std::fmt::Formatter;
use std::path::PathBuf;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use serde_json::Value;
use super::bool_index::BoolIndex;
use super::bool_index::mutable_bool_index::MutableBoolIndexBuilder;
use super::facet_index::FacetIndexEnum;
use supe... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/field_index/immutable_point_to_values.rs | lib/segment/src/index/field_index/immutable_point_to_values.rs | use std::ops::Range;
use common::types::PointOffsetType;
// Flatten points-to-values map
// It's an analogue of `Vec<Vec<N>>` but more RAM efficient because it stores values in a single Vec.
// This structure doesn't support adding new values, only removing.
// It's used in immutable field indices like `ImmutableMapI... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/field_index/mmap_point_to_values.rs | lib/segment/src/index/field_index/mmap_point_to_values.rs | use std::path::{Path, PathBuf};
use common::counter::conditioned_counter::ConditionedCounter;
use common::types::PointOffsetType;
use memmap2::Mmap;
use memory::fadvise::clear_disk_cache;
use memory::madvise::{AdviceSetting, Madviseable};
use memory::mmap_ops::{create_and_ensure_length, open_write_mmap};
use ordered_f... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/field_index/utils.rs | lib/segment/src/index/field_index/utils.rs | use std::ops::Bound;
use std::ops::Bound::{Excluded, Included};
pub fn check_boundaries<T>(start: &Bound<T>, end: &Bound<T>) -> bool
where
T: PartialOrd,
{
match (&start, &end) {
(Excluded(s), Excluded(e)) if s >= e => {
// range start and end are equal and excluded in BTreeMap
... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/field_index/facet_index.rs | lib/segment/src/index/field_index/facet_index.rs | use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use super::bool_index::BoolIndex;
use super::map_index::{IdIter, MapIndex};
use crate::data_types::facets::{FacetHit, FacetValueRef};
use crate::types::{IntPayloadType, UuidIntType};
pub trait FacetIndex {
/// Get all ... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/field_index/mod.rs | lib/segment/src/index/field_index/mod.rs | use std::ops::Deref;
use ahash::AHashSet;
use common::types::PointOffsetType;
use crate::types::{Condition, FieldCondition, PointIdType, VectorNameBuf};
pub mod bool_index;
pub(super) mod facet_index;
mod field_index_base;
pub mod full_text_index;
pub mod geo_hash;
pub mod geo_index;
mod histogram;
mod immutable_poi... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/field_index/stat_tools.rs | lib/segment/src/index/field_index/stat_tools.rs | use std::f64::consts::{E, PI};
/// This function estimates how many real points were selected with the filter.
/// It is assumed that each real point has, on average, X values in correspondence. As a response
/// to the execution of the query it is possible to establish only the number of matched associated
/// values... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/field_index/histogram.rs | lib/segment/src/index/field_index/histogram.rs | use std::collections::BTreeMap;
use std::collections::Bound::{Excluded, Included, Unbounded};
use std::ops::Bound;
use std::path::{Path, PathBuf};
use common::types::PointOffsetType;
use io::file_operations::{atomic_save_bin, atomic_save_json, read_bin, read_json};
use itertools::Itertools;
use num_traits::Num;
use se... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/field_index/index_selector.rs | lib/segment/src/index/field_index/index_selector.rs | use std::path::{Path, PathBuf};
#[cfg(feature = "rocksdb")]
use std::sync::Arc;
use gridstore::Blob;
use super::bool_index::BoolIndex;
use super::bool_index::mutable_bool_index::MutableBoolIndex;
#[cfg(feature = "rocksdb")]
use super::bool_index::simple_bool_index::SimpleBoolIndex;
use super::geo_index::{GeoMapIndexG... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/field_index/geo_index/mutable_geo_index.rs | lib/segment/src/index/field_index/geo_index/mutable_geo_index.rs | use std::cmp::max;
use std::collections::BTreeMap;
use std::path::PathBuf;
#[cfg(feature = "rocksdb")]
use std::sync::Arc;
use ahash::AHashSet;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use delegate::delegate;
use gridstore::Gridstore;
use gridstore::config::Storag... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/field_index/geo_index/mod.rs | lib/segment/src/index/field_index/geo_index/mod.rs | use std::cmp::{max, min};
#[cfg(feature = "rocksdb")]
use std::io::Write;
use std::path::{Path, PathBuf};
#[cfg(feature = "rocksdb")]
use std::str::FromStr;
#[cfg(feature = "rocksdb")]
use std::sync::Arc;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use itertools::Ite... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/field_index/geo_index/immutable_geo_index.rs | lib/segment/src/index/field_index/geo_index/immutable_geo_index.rs | use std::path::PathBuf;
use ahash::AHashSet;
use common::types::PointOffsetType;
#[cfg(feature = "rocksdb")]
use parking_lot::RwLock;
#[cfg(feature = "rocksdb")]
use rocksdb::DB;
use super::mmap_geo_index::MmapGeoMapIndex;
use crate::common::Flusher;
use crate::common::operation_error::{OperationError, OperationResul... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/field_index/geo_index/mmap_geo_index.rs | lib/segment/src/index/field_index/geo_index/mmap_geo_index.rs | use std::path::{Path, PathBuf};
use common::counter::conditioned_counter::ConditionedCounter;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use fs_err as fs;
use io::file_operations::{atomic_save_json, read_json};
use memmap2::MmapMut;
use memory::fadvise::clear_disk_c... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/field_index/full_text_index/mutable_text_index.rs | lib/segment/src/index/field_index/full_text_index/mutable_text_index.rs | use std::borrow::Cow;
use std::path::PathBuf;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use gridstore::Gridstore;
use gridstore::config::StorageOptions;
use itertools::Itertools;
use super::inverted_index::mutable_inverted_index::MutableInvertedIndex;
use super::i... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/field_index/full_text_index/immutable_text_index.rs | lib/segment/src/index/field_index/full_text_index/immutable_text_index.rs | use std::path::PathBuf;
use common::types::PointOffsetType;
use super::inverted_index::InvertedIndex;
use super::inverted_index::immutable_inverted_index::ImmutableInvertedIndex;
#[cfg(feature = "rocksdb")]
use super::inverted_index::mutable_inverted_index::MutableInvertedIndex;
use super::mmap_text_index::MmapFullTe... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/src/index/field_index/full_text_index/text_index.rs | lib/segment/src/index/field_index/full_text_index/text_index.rs | use std::borrow::Cow;
use std::path::PathBuf;
#[cfg(feature = "rocksdb")]
use std::sync::Arc;
use ahash::AHashSet;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
#[cfg(feature = "rocksdb")]
use parking_lot::RwLock;
#[cfg(feature = "rocksdb")]
use rocksdb::DB;
use serde:... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.