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/collection/src/collection/point_ops.rs | lib/collection/src/collection/point_ops.rs | use std::collections::HashMap;
use std::sync::Arc;
use std::time::Duration;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use futures::stream::FuturesUnordered;
use futures::{StreamExt as _, TryFutureExt, TryStreamExt as _, future};
use itertools::Itertools;
use segment::data_types::order_by::{Direction... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection/shard_transfer.rs | lib/collection/src/collection/shard_transfer.rs | use std::future::Future;
use std::path::PathBuf;
use std::sync::Arc;
use std::time::Duration;
use common::defaults;
use fs_err::tokio as tokio_fs;
use parking_lot::Mutex;
use tokio_util::task::AbortOnDropHandle;
use super::Collection;
use crate::operations::cluster_ops::ReshardingDirection;
use crate::operations::typ... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection/query.rs | lib/collection/src/collection/query.rs | use std::future::Future;
use std::sync::Arc;
use std::time::Duration;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use futures::{TryFutureExt, future};
use itertools::{Either, Itertools};
use rand::Rng;
use segment::common::reciprocal_rank_fusion::rrf_scoring;
use segment::common::score_fusion::{ScoreF... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection/clean.rs | lib/collection/src/collection/clean.rs | use std::collections::HashMap;
use std::ops::Deref;
use std::sync::{Arc, Weak};
use std::time::{Duration, Instant};
use ahash::AHashMap;
use cancel::{CancellationToken, DropGuard};
use common::counter::hardware_accumulator::HwMeasurementAcc;
use parking_lot::RwLock;
use segment::types::ExtendedPointId;
use tokio::sync... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection/collection_ops.rs | lib/collection/src/collection/collection_ops.rs | use std::cmp::{self, Reverse};
use std::sync::Arc;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use futures::{TryStreamExt as _, future};
use lazy_static::lazy_static;
use segment::types::{Payload, QuantizationConfig, StrictModeConfig};
use semver::Version;
use super::Collection;
use crate::collection... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection/payload_index_schema.rs | lib/collection/src/collection/payload_index_schema.rs | use std::path::{Path, PathBuf};
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::save_on_disk::SaveOnDisk;
use segment::json_path::JsonPath;
use segment::types::{Filter, PayloadFieldSchema};
pub use shard::payload_index_schema::PayloadIndexSchema;
use crate::collection::Collection;
use crate::... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection/resharding.rs | lib/collection/src/collection/resharding.rs | use std::num::NonZeroU32;
use futures::Future;
use super::Collection;
use crate::config::ShardingMethod;
use crate::hash_ring::HashRingRouter;
use crate::operations::cluster_ops::ReshardingDirection;
use crate::operations::types::CollectionResult;
use crate::shards::replica_set::replica_set_state::ReplicaState;
use c... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/operation_effect.rs | lib/collection/src/operations/operation_effect.rs | use std::borrow::Cow;
use segment::types::{Filter, PointIdType};
use super::vector_ops;
use crate::operations::payload_ops::PayloadOps;
use crate::operations::{CollectionUpdateOperations, point_ops};
/// Structure to define what part of the shard are affected by the operation
pub enum OperationEffectArea<'a> {
E... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/snapshot_ops.rs | lib/collection/src/operations/snapshot_ops.rs | use std::path::{Path, PathBuf};
use std::str::FromStr;
use std::time::SystemTime;
use api::grpc::conversions::naive_date_time_to_proto;
use chrono::{DateTime, NaiveDateTime};
use fs_err::tokio as tokio_fs;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use url::Url;
use validator::Validate;
use crate:... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/config_diff.rs | lib/collection/src/operations/config_diff.rs | //! Structures for partial update of collection params
#![allow(deprecated)] // hack to remove warning for memmap_threshold deprecation below
use std::num::NonZeroU32;
use api::rest::MaxOptimizationThreads;
use schemars::JsonSchema;
use segment::types::{
BinaryQuantization, HnswConfig, ProductQuantization, Scala... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/validation.rs | lib/collection/src/operations/validation.rs | use actix_web_validator::error::flatten_errors;
use serde_json::Value;
use validator::{ValidationError, ValidationErrors};
/// Warn about validation errors in the log.
///
/// Validation errors are pretty printed field-by-field.
pub fn warn_validation_errors(description: &str, errs: &ValidationErrors) {
log::warn!... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/payload_ops.rs | lib/collection/src/operations/payload_ops.rs | pub use shard::operations::payload_ops::*;
use super::{OperationToShard, SplitByShard, split_iter_by_shard};
use crate::hash_ring::HashRingRouter;
impl SplitByShard for PayloadOps {
fn split_by_shard(self, ring: &HashRingRouter) -> OperationToShard<Self> {
match self {
PayloadOps::SetPayload(o... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/shared_storage_config.rs | lib/collection/src/operations/shared_storage_config.rs | use std::default;
use std::num::NonZeroUsize;
use std::time::Duration;
use segment::types::HnswGlobalConfig;
use crate::common::snapshots_manager::SnapshotsConfig;
use crate::operations::types::NodeType;
use crate::shards::transfer::ShardTransferMethod;
/// Default timeout for search requests.
/// In cluster mode, t... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/consistency_params.rs | lib/collection/src/operations/consistency_params.rs | use std::borrow::Cow;
use api::grpc::qdrant::{
ReadConsistency as ReadConsistencyGrpc, ReadConsistencyType as ReadConsistencyTypeGrpc,
read_consistency,
};
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use validator::{Validate, ValidationError as ValidatorError, ValidationErrors};
/// Read co... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/vector_ops.rs | lib/collection/src/operations/vector_ops.rs | use std::collections::HashSet;
use ahash::AHashMap;
use api::rest::{PointVectors, ShardKeySelector};
use schemars::JsonSchema;
use segment::types::{Filter, PointIdType, VectorNameBuf};
use serde::{Deserialize, Serialize};
pub use shard::operations::vector_ops::*;
use validator::Validate;
use super::{OperationToShard,... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/shard_selector_internal.rs | lib/collection/src/operations/shard_selector_internal.rs | use api::rest::{ShardKeySelector, ShardKeyWithFallback};
use segment::types::ShardKey;
use crate::shards::shard::ShardId;
#[derive(Debug, Clone, PartialEq)]
pub enum ShardSelectorInternal {
/// No shard key specified
Empty,
/// All apply to all keys
All,
/// Select one shard key
ShardKey(Shard... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/cluster_ops.rs | lib/collection/src/operations/cluster_ops.rs | use std::num::NonZeroU32;
use common::validation::validate_shard_different_peers;
use schemars::JsonSchema;
use segment::types::{Filter, ShardKey};
use serde::{Deserialize, Serialize};
use uuid::Uuid;
use validator::{Validate, ValidationErrors};
use crate::shards::replica_set::replica_set_state::ReplicaState;
use cra... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/types.rs | lib/collection/src/operations/types.rs | use std::backtrace::Backtrace;
use std::collections::{BTreeMap, HashMap};
use std::error::Error as _;
use std::fmt::{Debug, Write as _};
use std::iter;
use std::num::NonZeroU64;
use std::time::{Duration, SystemTimeError};
use api::grpc::transport_channel_pool::RequestError;
use api::rest::{
BaseGroupRequest, Looku... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/loggable.rs | lib/collection/src/operations/loggable.rs | use std::hash::{DefaultHasher, Hash, Hasher};
use std::sync::Arc;
use segment::data_types::facets::FacetParams;
use serde_json::Value;
use shard::operations::CollectionUpdateOperations;
use crate::operations::types::{CountRequestInternal, PointRequestInternal, ScrollRequestInternal};
use crate::operations::universal_... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/mod.rs | lib/collection/src/operations/mod.rs | pub mod cluster_ops;
pub mod config_diff;
pub mod consistency_params;
pub mod conversions;
pub mod generalizer;
pub mod loggable;
pub mod operation_effect;
pub mod payload_ops;
pub mod point_ops;
pub mod shard_selector_internal;
pub mod shared_storage_config;
pub mod snapshot_ops;
pub mod snapshot_storage_ops;
#[cfg(fe... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/staging.rs | lib/collection/src/operations/staging.rs | //! Staging-only operations for testing and debugging purposes.
//!
//! This module contains operations that are only available when the `staging` feature is enabled.
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use validator::Validate;
use crate::shards::shard::PeerId;
fn default_test_slow_down_du... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/snapshot_storage_ops.rs | lib/collection/src/operations/snapshot_storage_ops.rs | use std::io::{BufReader, Read};
use std::path::{Path, PathBuf};
use common::budget::ResourceBudget;
use fs_err as fs;
use fs_err::{File, tokio as tokio_fs};
use futures::StreamExt;
use object_store::WriteMultipart;
use segment::common::BYTES_IN_MB;
use tokio::io::AsyncWriteExt;
use super::snapshot_ops::SnapshotDescri... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/point_ops.rs | lib/collection/src/operations/point_ops.rs | use std::collections::HashMap;
use ahash::AHashMap;
use api::rest::ShardKeySelector;
use itertools::izip;
use schemars::JsonSchema;
use segment::common::utils::transpose_map_into_named_vector;
use segment::data_types::named_vectors::NamedVectors;
use segment::data_types::vectors::VectorInternal;
use segment::types::Fi... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/conversions.rs | lib/collection/src/operations/conversions.rs | use std::collections::BTreeMap;
use std::num::{NonZeroU32, NonZeroU64};
use std::time::Duration;
use api::conversions::json::json_path_from_proto;
use api::grpc::conversions::{
convert_shard_key_from_grpc, convert_shard_key_from_grpc_opt, convert_shard_key_to_grpc,
from_grpc_dist,
};
use api::grpc::qdrant::qua... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/vector_params_builder.rs | lib/collection/src/operations/vector_params_builder.rs | use std::num::NonZeroU64;
use segment::types::{Distance, MultiVectorConfig, QuantizationConfig};
use crate::operations::config_diff::HnswConfigDiff;
use crate::operations::types::{Datatype, VectorParams};
pub struct VectorParamsBuilder {
vector_params: VectorParams,
}
impl VectorParamsBuilder {
pub fn new(s... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/verification/count.rs | lib/collection/src/operations/verification/count.rs | use segment::types::{Filter, SearchParams};
use super::StrictModeVerification;
use crate::operations::types::CountRequestInternal;
impl StrictModeVerification for CountRequestInternal {
fn query_limit(&self) -> Option<usize> {
None
}
fn indexed_filter_read(&self) -> Option<&Filter> {
self... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/verification/discovery.rs | lib/collection/src/operations/verification/discovery.rs | use segment::types::{Filter, SearchParams, StrictModeConfig};
use super::StrictModeVerification;
use crate::collection::Collection;
use crate::operations::types::{CollectionResult, DiscoverRequestBatch, DiscoverRequestInternal};
impl StrictModeVerification for DiscoverRequestInternal {
fn query_limit(&self) -> Op... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/verification/update.rs | lib/collection/src/operations/verification/update.rs | use api::rest::{
BatchVectorStruct, MultiDenseVector, PointInsertOperations, PointsBatch, PointsList,
UpdateVectors, Vector, VectorStruct,
};
use segment::data_types::tiny_map::TinyMap;
use segment::data_types::vectors::DEFAULT_VECTOR_NAME;
use segment::types::{
Filter, StrictModeConfig, StrictModeMultivect... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/verification/recommend.rs | lib/collection/src/operations/verification/recommend.rs | use segment::types::Filter;
use super::StrictModeVerification;
use crate::operations::types::{RecommendGroupsRequestInternal, RecommendRequestInternal};
impl StrictModeVerification for RecommendRequestInternal {
fn query_limit(&self) -> Option<usize> {
Some(self.limit)
}
fn indexed_filter_read(&s... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/verification/local_shard.rs | lib/collection/src/operations/verification/local_shard.rs | use super::StrictModeVerification;
use crate::operations::types::{PointRequestInternal, ScrollRequestInternal};
impl StrictModeVerification for ScrollRequestInternal {
fn query_limit(&self) -> Option<usize> {
self.limit
}
fn indexed_filter_read(&self) -> Option<&segment::types::Filter> {
s... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/verification/search.rs | lib/collection/src/operations/verification/search.rs | use api::rest::{SearchGroupsRequestInternal, SearchRequestInternal};
use segment::types::{Filter, SearchParams, StrictModeConfig};
use super::{StrictModeVerification, check_grouping_field};
use crate::collection::Collection;
use crate::operations::types::{CollectionResult, CoreSearchRequest, SearchRequestBatch};
impl... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/verification/facet.rs | lib/collection/src/operations/verification/facet.rs | use api::rest::FacetRequestInternal;
use segment::data_types::facets::FacetParams;
use segment::types::{Filter, SearchParams};
use super::StrictModeVerification;
impl StrictModeVerification for FacetRequestInternal {
fn query_limit(&self) -> Option<usize> {
self.limit
}
fn indexed_filter_read(&se... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/verification/mod.rs | lib/collection/src/operations/verification/mod.rs | mod count;
mod discovery;
mod facet;
mod local_shard;
mod matrix;
mod query;
mod recommend;
mod search;
mod update;
use std::fmt::Display;
use itertools::Itertools;
use segment::json_path::JsonPath;
use segment::types::{Filter, SearchParams, StrictModeConfig};
pub use shard::operation_rate_cost;
use super::types::{C... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/verification/query.rs | lib/collection/src/operations/verification/query.rs | use itertools::Itertools;
use segment::data_types::vectors::DEFAULT_VECTOR_NAME;
use segment::types::{Filter, StrictModeConfig};
use super::{StrictModeVerification, check_grouping_field};
use crate::collection::Collection;
use crate::operations::types::{CollectionError, CollectionResult};
use crate::operations::univer... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/verification/matrix.rs | lib/collection/src/operations/verification/matrix.rs | use api::rest::SearchMatrixRequestInternal;
use super::StrictModeVerification;
use crate::collection::distance_matrix::CollectionSearchMatrixRequest;
impl StrictModeVerification for SearchMatrixRequestInternal {
fn query_limit(&self) -> Option<usize> {
match (self.limit, self.sample) {
(Some(l... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/universal_query/collection_query.rs | lib/collection/src/operations/universal_query/collection_query.rs | use ahash::AHashSet;
use api::rest::LookupLocation;
use common::types::ScoreType;
use itertools::Itertools;
use ordered_float::OrderedFloat;
use segment::data_types::order_by::OrderBy;
use segment::data_types::vectors::{DEFAULT_VECTOR_NAME, NamedQuery, VectorInternal, VectorRef};
use segment::index::query_optimization:... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/universal_query/mod.rs | lib/collection/src/operations/universal_query/mod.rs | //! ## Universal query request types
//!
//! Provides a common interface for querying points in a collection
//!
//! Pipeline of type conversion:
//!
//! 1. [`api::rest::QueryRequest`], [`api::grpc::qdrant::QueryPoints`]:
//! Rest or grpc request. Used in API.
//! 2. [`collection_query::CollectionQueryRequest`]:
//!... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/universal_query/shard_query.rs | lib/collection/src/operations/universal_query/shard_query.rs | use segment::types::Order;
pub use shard::query::*;
use crate::config::CollectionParams;
use crate::operations::types::CollectionResult;
/// Returns the expected order of results, depending on the type of query
pub fn query_result_order(
query: Option<&ScoringQuery>,
collection_params: &CollectionParams,
) ->... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/generalizer/count.rs | lib/collection/src/operations/generalizer/count.rs | use crate::operations::generalizer::Generalizer;
use crate::operations::types::CountRequestInternal;
impl Generalizer for CountRequestInternal {
fn remove_details(&self) -> Self {
let CountRequestInternal { filter, exact } = self;
Self {
filter: filter.clone(),
exact: *exact... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/generalizer/points.rs | lib/collection/src/operations/generalizer/points.rs | use crate::operations::generalizer::Generalizer;
use crate::operations::types::{PointRequestInternal, ScrollRequestInternal};
impl Generalizer for ScrollRequestInternal {
fn remove_details(&self) -> Self {
let ScrollRequestInternal {
offset,
limit,
filter,
wi... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/generalizer/facet.rs | lib/collection/src/operations/generalizer/facet.rs | use api::rest::FacetRequestInternal;
use crate::operations::generalizer::Generalizer;
impl Generalizer for FacetRequestInternal {
fn remove_details(&self) -> Self {
let FacetRequestInternal {
key,
limit,
filter,
exact,
} = self;
Self {
... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/generalizer/mod.rs | lib/collection/src/operations/generalizer/mod.rs | mod count;
mod facet;
mod matrix;
mod points;
mod query;
mod update_persisted;
/// A trait, that provides an interface for removing vectors and payloads from a structure.
/// This is useful for generalizing requests by stripping out vector-specific and payload-specific details,
/// and essentially making the structure... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/generalizer/update_persisted.rs | lib/collection/src/operations/generalizer/update_persisted.rs | use itertools::Itertools;
use segment::types::{Payload, PointIdType};
use serde_json::Value;
use shard::operations::payload_ops::{PayloadOps, SetPayloadOp};
use shard::operations::point_ops::{
BatchPersisted, BatchVectorStructPersisted, ConditionalInsertOperationInternal,
PointInsertOperationsInternal, PointOpe... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/generalizer/query.rs | lib/collection/src/operations/generalizer/query.rs | use segment::data_types::vectors::{MultiDenseVectorInternal, NamedQuery, VectorInternal};
use segment::vector_storage::query::{
ContextPair, ContextQuery, DiscoveryQuery, FeedbackItem, NaiveFeedbackCoefficients,
NaiveFeedbackQuery, RecoQuery,
};
use shard::query::query_enum::QueryEnum;
use sparse::common::spars... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/operations/generalizer/matrix.rs | lib/collection/src/operations/generalizer/matrix.rs | use api::rest::SearchMatrixRequestInternal;
use crate::collection::distance_matrix::CollectionSearchMatrixRequest;
use crate::operations::generalizer::Generalizer;
impl Generalizer for SearchMatrixRequestInternal {
fn remove_details(&self) -> Self {
let SearchMatrixRequestInternal {
filter,
... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/common/fetch_vectors.rs | lib/collection/src/common/fetch_vectors.rs | use std::fmt::Debug;
use std::time::Duration;
use ahash::{AHashMap, AHashSet};
use api::rest::ShardKeySelector;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use futures::Future;
use futures::future::try_join_all;
use segment::data_types::vectors::{VectorInternal, VectorRef};
use segment::types::{PointI... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/common/batching.rs | lib/collection/src/common/batching.rs | use crate::operations::types::CollectionResult;
/// The function performs batching processing of read requests, that some arbitrary key
///
/// Functions are split into sequential subgroups based on the shard key.
/// There are two customizable aggregation functions:
///
/// * `accumulate_local` - called for each requ... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/common/retrieve_request_trait.rs | lib/collection/src/common/retrieve_request_trait.rs | use api::rest::schema::ShardKeySelector;
use segment::data_types::vectors::DEFAULT_VECTOR_NAME;
use segment::types::{PointIdType, VectorNameBuf};
use crate::operations::types::{DiscoverRequestInternal, RecommendRequestInternal, UsingVector};
use crate::operations::universal_query::collection_query::{
CollectionQue... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/common/eta_calculator.rs | lib/collection/src/common/eta_calculator.rs | use std::time::{Duration, Instant};
use ringbuffer::{ConstGenericRingBuffer, RingBuffer as _};
/// A progress ETA calculator.
/// Calculates the ETA roughly based on the last ten seconds of measurements.
pub struct EtaCalculator(ConstGenericRingBuffer<(Instant, usize), { Self::SIZE }>);
impl EtaCalculator {
cons... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/common/snapshot_stream.rs | lib/collection/src/common/snapshot_stream.rs | use std::error::Error;
use std::path::PathBuf;
use std::pin::Pin;
use actix_files::NamedFile;
use actix_web::http::header::ContentDisposition;
use actix_web::{HttpResponse, Responder};
use bytes::Bytes;
use futures::{Stream, TryStreamExt};
pub struct SnapShotStreamLocalFS {
pub snapshot_path: PathBuf,
}
type Byt... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/common/collection_size_stats.rs | lib/collection/src/common/collection_size_stats.rs | use std::future::Future;
use std::sync::atomic::{AtomicUsize, Ordering};
/// Amount of requests that have to be done until the cached data gets updated.
const UPDATE_INTERVAL: usize = 32;
/// A cache for `LocalDataStats` utilizing `AtomicUsize` for better performance.
#[derive(Default)]
pub(crate) struct CollectionSi... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/common/file_utils.rs | lib/collection/src/common/file_utils.rs | use std::path::{Path, PathBuf};
use fs_err::tokio as tokio_fs;
use fs_extra::dir::CopyOptions;
use crate::operations::types::{CollectionError, CollectionResult};
/// Move directory from one location to another
///
/// Handles the case when the source and destination are on different filesystems.
///
/// # Cancel saf... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/common/sha_256.rs | lib/collection/src/common/sha_256.rs | use std::io;
use std::path::Path;
use bytes::BytesMut;
use fs_err::tokio::File;
use sha2::{Digest, Sha256};
use tokio::io::AsyncReadExt;
/// Compute sha256 hash for the given file
pub async fn hash_file(file_path: &Path) -> io::Result<String> {
log::debug!("Computing checksum for file: {file_path:?}");
const... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/common/mod.rs | lib/collection/src/common/mod.rs | pub mod batching;
pub mod collection_size_stats;
pub mod eta_calculator;
pub mod fetch_vectors;
pub mod file_utils;
pub mod is_ready;
pub mod retrieve_request_trait;
pub mod sha_256;
pub mod snapshot_stream;
pub mod snapshots_manager;
pub mod stoppable_task;
pub mod stoppable_task_async;
pub mod transpose_iterator;
| rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/common/stoppable_task.rs | lib/collection/src/common/stoppable_task.rs | use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::{Arc, Weak};
use tokio::task::JoinHandle;
use tokio_util::task::AbortOnDropHandle;
/// A task that can be asked to stop
///
/// If this future is dropped the blocking task may be aborted prematurely if it has not started
/// yet.
pub struct StoppableTaskHa... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/common/stoppable_task_async.rs | lib/collection/src/common/stoppable_task_async.rs | use std::future::Future;
use std::sync::Arc;
use std::sync::atomic::{AtomicBool, Ordering};
use parking_lot::Mutex;
use tokio::task::JoinHandle;
use tokio_util::sync::CancellationToken;
pub struct CancellableAsyncTaskHandle<T: Clone> {
pub join_handle: JoinHandle<T>,
result_holder: Arc<Mutex<Option<T>>>,
... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/common/transpose_iterator.rs | lib/collection/src/common/transpose_iterator.rs | /// Convert a shape [N, M] to [M, N].
///
/// # Example
///
/// [
/// [1, 2, 3],
/// [4, 5, 6],
/// ]
///
/// to
///
/// [
/// [1, 4],
/// [2, 5],
/// [3, 6],
/// ]
///
/// # Panics
///
/// May panic if the input is not a rectangle.
pub fn transpose<T>(v: Vec<Vec<T>>) -> Vec<Vec<T>> {
transposed_iter... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/common/is_ready.rs | lib/collection/src/common/is_ready.rs | use std::time::Duration;
use parking_lot::{Condvar, Mutex};
pub struct IsReady {
condvar: Condvar,
value: Mutex<bool>,
}
impl Default for IsReady {
fn default() -> Self {
Self {
condvar: Condvar::new(),
value: Mutex::new(false),
}
}
}
impl IsReady {
pub fn... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/common/snapshots_manager.rs | lib/collection/src/common/snapshots_manager.rs | use std::path::{Path, PathBuf};
use common::tempfile_ext::MaybeTempPath;
use fs_err as fs;
use fs_err::tokio as tokio_fs;
use object_store::aws::AmazonS3Builder;
use serde::Deserialize;
use tempfile::TempPath;
use tokio::io::AsyncWriteExt;
use super::snapshot_stream::{SnapShotStreamLocalFS, SnapshotStream};
use crate... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/test.rs | lib/collection/src/shards/test.rs | use super::local_shard::clock_map::ClockMap;
use super::replica_set::clock_set::ClockSet;
use super::shard::PeerId;
use crate::operations::ClockTag;
#[test]
fn clock_set_clock_map_workflow() {
let mut helper = Helper::new();
// `ClockSet` and `ClockMap` "stick" to tick `0`, until `ClockSet` is advanced at lea... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/shard_config.rs | lib/collection/src/shards/shard_config.rs | use std::path::{Path, PathBuf};
use common::tar_ext;
use io::file_operations::{atomic_save_json, read_json};
use serde::{Deserialize, Serialize};
use crate::operations::types::CollectionResult;
use crate::shards::shard::PeerId;
pub const SHARD_CONFIG_FILE: &str = "shard_config.json";
#[derive(Debug, Deserialize, Se... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/update_tracker.rs | lib/collection/src/shards/update_tracker.rs | use std::future::{self, Future};
use std::sync::Arc;
use std::sync::atomic::{AtomicUsize, Ordering};
use tokio::sync::watch;
#[derive(Clone, Debug)]
pub struct UpdateTracker {
update_operations: Arc<AtomicUsize>,
update_notifier: Arc<watch::Sender<()>>,
}
impl Default for UpdateTracker {
fn default() -> ... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/telemetry.rs | lib/collection/src/shards/telemetry.rs | use std::collections::HashMap;
use schemars::JsonSchema;
use segment::common::anonymize::{Anonymize, anonymize_collection_values};
use segment::common::operation_time_statistics::OperationDurationStatistics;
use segment::telemetry::SegmentTelemetry;
use segment::types::ShardKey;
use serde::Serialize;
use crate::colle... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/shard.rs | lib/collection/src/shards/shard.rs | use core::marker::{Send, Sync};
use std::future::{self, Future};
use std::path::Path;
use std::sync::Arc;
use std::time::Duration;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::tar_ext;
use common::types::TelemetryDetail;
use parking_lot::Mutex as ParkingMutex;
use segment::data_types::manif... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/shard_trait.rs | lib/collection/src/shards/shard_trait.rs | use std::sync::Arc;
use std::time::Duration;
use async_trait::async_trait;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use segment::data_types::facets::{FacetParams, FacetResponse};
use segment::types::*;
use shard::retrieve::record_internal::RecordInternal;
use shard::search::CoreSearchRequestBatch;
... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/proxy_shard.rs | lib/collection/src/shards/proxy_shard.rs | use std::path::Path;
use std::sync::Arc;
use std::sync::atomic::AtomicBool;
use std::time::Duration;
use ahash::AHashSet;
use async_trait::async_trait;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::tar_ext;
use common::types::TelemetryDetail;
use parking_lot::Mutex as ParkingMutex;
use segme... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/mod.rs | lib/collection/src/shards/mod.rs | pub mod channel_service;
pub mod collection_shard_distribution;
mod conversions;
pub mod dummy_shard;
pub mod forward_proxy_shard;
pub mod local_shard;
pub mod proxy_shard;
pub mod queue_proxy_shard;
pub mod remote_shard;
pub mod replica_set;
pub mod resharding;
pub mod resolve;
pub mod shard;
pub mod shard_config;
pub... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/channel_service.rs | lib/collection/src/shards/channel_service.rs | use std::collections::HashMap;
use std::sync::Arc;
use std::time::Duration;
use api::grpc::qdrant::WaitOnConsensusCommitRequest;
use api::grpc::qdrant::qdrant_internal_client::QdrantInternalClient;
use api::grpc::transport_channel_pool::{AddTimeout, TransportChannelPool};
use futures::Future;
use futures::future::try_... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/resolve.rs | lib/collection/src/shards/resolve.rs | use std::collections::{HashMap, HashSet};
use std::hash;
use std::iter::Peekable;
use std::rc::Rc;
use itertools::Itertools;
use segment::data_types::facets::{FacetResponse, FacetValue};
use segment::types::{Payload, ScoredPoint};
use shard::retrieve::record_internal::RecordInternal;
use tinyvec::TinyVec;
use crate::... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/conversions.rs | lib/collection/src/shards/conversions.rs | use api::conversions::json::payload_to_proto;
use api::grpc::conversions::convert_shard_key_from_grpc_opt;
use api::grpc::qdrant::points_selector::PointsSelectorOneOf;
use api::grpc::qdrant::{
ClearPayloadPoints, ClearPayloadPointsInternal, CreateFieldIndexCollection,
CreateFieldIndexCollectionInternal, DeleteF... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/dummy_shard.rs | lib/collection/src/shards/dummy_shard.rs | use std::path::Path;
use std::sync::Arc;
use std::time::Duration;
use async_trait::async_trait;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::tar_ext;
use segment::data_types::facets::{FacetParams, FacetResponse};
use segment::data_types::manifest::SnapshotManifest;
use segment::index::field... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/remote_shard.rs | lib/collection/src/shards/remote_shard.rs | use std::future::Future;
use std::path::Path;
use std::sync::Arc;
use std::time::Duration;
use api::grpc::qdrant::collections_internal_client::CollectionsInternalClient;
use api::grpc::qdrant::points_internal_client::PointsInternalClient;
use api::grpc::qdrant::qdrant_client::QdrantClient;
use api::grpc::qdrant::shard... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/forward_proxy_shard.rs | lib/collection/src/shards/forward_proxy_shard.rs | use std::path::Path;
use std::sync::Arc;
use std::time::Duration;
use ahash::HashSet;
use async_trait::async_trait;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::tar_ext;
use common::types::TelemetryDetail;
use parking_lot::Mutex as ParkingMutex;
use segment::data_types::facets::{FacetParams... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/collection_shard_distribution.rs | lib/collection/src/shards/collection_shard_distribution.rs | use std::collections::HashSet;
use ahash::AHashMap;
use crate::collection_state::ShardInfo;
use crate::shards::shard::{PeerId, ShardId};
#[derive(Debug, Clone)]
pub struct CollectionShardDistribution {
pub shards: AHashMap<ShardId, HashSet<PeerId>>,
}
impl CollectionShardDistribution {
pub fn all_local(shar... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/resharding.rs | lib/collection/src/shards/resharding.rs | use std::fmt;
use schemars::JsonSchema;
use segment::types::ShardKey;
use serde::{Deserialize, Serialize};
use uuid::Uuid;
use super::shard::{PeerId, ShardId};
use crate::operations::cluster_ops::ReshardingDirection;
#[derive(Clone, Debug, Eq, PartialEq, Deserialize, Serialize)]
pub struct ReshardState {
pub uui... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/queue_proxy_shard.rs | lib/collection/src/shards/queue_proxy_shard.rs | use std::path::Path;
use std::sync::Arc;
use std::sync::atomic::{AtomicU64, Ordering};
use std::time::Duration;
use async_trait::async_trait;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::tar_ext;
use common::types::TelemetryDetail;
use parking_lot::Mutex as ParkingMutex;
use segment::data_t... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/transfer/helpers.rs | lib/collection/src/shards/transfer/helpers.rs | use std::collections::{HashMap, HashSet};
use super::{ShardTransfer, ShardTransferKey, ShardTransferMethod};
use crate::operations::types::{CollectionError, CollectionResult};
use crate::shards::replica_set::replica_set_state::ReplicaState;
use crate::shards::shard::{PeerId, ShardId};
use crate::shards::shard_holder::... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/transfer/transfer_tasks_pool.rs | lib/collection/src/shards/transfer/transfer_tasks_pool.rs | use std::cmp::max;
use std::collections::HashMap;
use std::fmt::Write as _;
use std::sync::Arc;
use parking_lot::Mutex;
use crate::common::eta_calculator::EtaCalculator;
use crate::common::stoppable_task_async::CancellableAsyncTaskHandle;
use crate::shards::CollectionId;
use crate::shards::transfer::{ShardTransfer, S... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/transfer/resharding_stream_records.rs | lib/collection/src/shards/transfer/resharding_stream_records.rs | use std::sync::Arc;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use parking_lot::Mutex;
use super::transfer_tasks_pool::TransferTaskProgress;
use crate::hash_ring::HashRingRouter;
use crate::operations::types::{CollectionError, CollectionResult, CountRequestInternal};
use crate::shards::CollectionId;... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/transfer/mod.rs | lib/collection/src/shards/transfer/mod.rs | use std::time::Duration;
use async_trait::async_trait;
use common::defaults::{self, CONSENSUS_CONFIRM_RETRIES};
use schemars::JsonSchema;
use segment::types::Filter;
use serde::{Deserialize, Serialize};
use tokio::time::sleep;
use super::CollectionId;
use super::channel_service::ChannelService;
use super::remote_shar... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/transfer/stream_records.rs | lib/collection/src/shards/transfer/stream_records.rs | use std::sync::Arc;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use parking_lot::Mutex;
use semver::Version;
use super::transfer_tasks_pool::TransferTaskProgress;
use crate::operations::types::{CollectionError, CollectionResult, CountRequestInternal};
use crate::shards::CollectionId;
use crate::shard... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/transfer/wal_delta.rs | lib/collection/src/shards/transfer/wal_delta.rs | use std::sync::Arc;
use common::defaults;
use parking_lot::Mutex;
use super::transfer_tasks_pool::TransferTaskProgress;
use super::{ShardTransfer, ShardTransferConsensus};
use crate::operations::types::{CollectionError, CollectionResult};
use crate::shards::CollectionId;
use crate::shards::remote_shard::RemoteShard;
... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/transfer/snapshot.rs | lib/collection/src/shards/transfer/snapshot.rs | use std::path::Path;
use std::sync::Arc;
use common::defaults;
use parking_lot::Mutex;
use semver::Version;
use tempfile::TempPath;
use super::transfer_tasks_pool::TransferTaskProgress;
use super::{ShardTransfer, ShardTransferConsensus};
use crate::operations::snapshot_ops::{SnapshotPriority, get_checksum_path};
use ... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/transfer/driver.rs | lib/collection/src/shards/transfer/driver.rs | use std::future::Future;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use std::time::Duration;
use parking_lot::Mutex;
use tokio::time::sleep;
use super::resharding_stream_records::transfer_resharding_stream_records;
use super::snapshot::transfer_snapshot;
use super::stream_records::transfer_stream_records;
us... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/local_shard/updaters.rs | lib/collection/src/shards/local_shard/updaters.rs | use std::sync::Arc;
use tokio::sync::mpsc;
use crate::operations::types::CollectionResult;
use crate::optimizers_builder::build_optimizers;
use crate::shards::local_shard::LocalShard;
use crate::update_handler::UpdateSignal;
impl LocalShard {
pub fn trigger_optimizers(&self) {
// Send a trigger signal an... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/local_shard/scroll.rs | lib/collection/src/shards/local_shard/scroll.rs | use std::collections::HashSet;
use std::sync::Arc;
use std::time::{Duration, Instant};
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::counter::hardware_counter::HardwareCounterCell;
use futures::future::try_join_all;
use itertools::Itertools as _;
use rand::distr::weighted::WeightedIndex;
use... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/local_shard/clock_map.rs | lib/collection/src/shards/local_shard/clock_map.rs | use std::collections::{HashMap, hash_map};
use std::fmt;
use std::path::Path;
use api::grpc::qdrant::RecoveryPointClockTag;
use io::file_operations;
use serde::{Deserialize, Serialize};
use tonic::Status;
use crate::operations::types::CollectionError;
use crate::operations::{ClockTag, ClockToken};
use crate::shards::... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/local_shard/telemetry.rs | lib/collection/src/shards/local_shard/telemetry.rs | use std::collections::HashMap;
use std::sync::atomic::Ordering;
use std::time::Duration;
use common::types::{DetailsLevel, TelemetryDetail};
use segment::common::BYTES_IN_KB;
use segment::common::operation_time_statistics::OperationDurationStatistics;
use segment::types::{SizeStats, VectorNameBuf};
use segment::vector... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/local_shard/search.rs | lib/collection/src/shards/local_shard/search.rs | use std::sync::Arc;
use std::time::Duration;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use segment::types::ScoredPoint;
use shard::common::stopping_guard::StoppingGuard;
use shard::query::query_enum::QueryEnum;
use shard::search::CoreSearchRequestBatch;
use tokio::runtime::Handle;
use super::LocalS... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/local_shard/formula_rescore.rs | lib/collection/src/shards/local_shard/formula_rescore.rs | use std::sync::Arc;
use std::time::Duration;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use segment::data_types::query_context::FormulaContext;
use segment::index::query_optimization::rescore_formula::parsed_formula::ParsedFormula;
use segment::types::ScoredPoint;
use shard::common::stopping_guard::S... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/local_shard/facet.rs | lib/collection/src/shards/local_shard/facet.rs | use std::collections::BTreeSet;
use std::sync::Arc;
use std::time::Duration;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::counter::hardware_counter::HardwareCounterCell;
use futures::future;
use futures::future::try_join_all;
use itertools::{Itertools, process_results};
use segment::data_ty... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/local_shard/testing.rs | lib/collection/src/shards/local_shard/testing.rs | use shard::locked_segment::LockedSegment;
use crate::shards::local_shard::LocalShard;
impl LocalShard {
// Testing helper: performs partial flush of the segments
pub fn partial_flush(&self) {
let segments = self.segments.read();
for (_segment_id, segment) in segments.iter() {
matc... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/local_shard/mod.rs | lib/collection/src/shards/local_shard/mod.rs | pub mod clock_map;
pub mod disk_usage_watcher;
pub(super) mod facet;
pub(super) mod formula_rescore;
pub(super) mod query;
pub(super) mod scroll;
pub(super) mod search;
pub(super) mod shard_ops;
mod snapshot;
mod telemetry;
pub(super) mod updaters;
#[cfg(test)]
mod snapshot_tests;
mod drop;
#[cfg(feature = "testing"... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/local_shard/drop.rs | lib/collection/src/shards/local_shard/drop.rs | use std::thread;
use crate::shards::local_shard::LocalShard;
use crate::update_handler::UpdateSignal;
impl Drop for LocalShard {
fn drop(&mut self) {
if self.is_gracefully_stopped {
return;
}
log::debug!(
"Local shard {} is not explicitly stopped before drop. Attem... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/local_shard/shard_ops.rs | lib/collection/src/shards/local_shard/shard_ops.rs | use std::sync::Arc;
use std::time::Duration;
use async_trait::async_trait;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use segment::data_types::facets::{FacetParams, FacetResponse};
use segment::data_types::order_by::OrderBy;
use segment::types::{
ExtendedPointId, Filter, ScoredPoint, WithPayload,... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/local_shard/query.rs | lib/collection/src/shards/local_shard/query.rs | use std::mem;
use std::sync::Arc;
use std::time::{Duration, Instant};
use ahash::AHashSet;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use futures::FutureExt;
use futures::future::BoxFuture;
use ordered_float::OrderedFloat;
use parking_lot::Mutex;
use segment::common::reciprocal_rank_fusion::rrf_scori... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/local_shard/snapshot.rs | lib/collection/src/shards/local_shard/snapshot.rs | use std::num::NonZeroUsize;
use std::path::Path;
use std::sync::Arc;
use common::save_on_disk::SaveOnDisk;
use common::tar_ext;
use fs_err as fs;
use parking_lot::RwLock;
use segment::common::operation_error::{OperationError, OperationResult};
use segment::data_types::manifest::SnapshotManifest;
use segment::entry::Se... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/local_shard/disk_usage_watcher.rs | lib/collection/src/shards/local_shard/disk_usage_watcher.rs | use std::path::PathBuf;
use tokio::sync::Mutex;
use tokio::time::Instant;
use tokio_util::task::AbortOnDropHandle;
use crate::operations::types::{CollectionError, CollectionResult};
/// Defines how often the disk usage should be checked if the disk is far from being full
const DEFAULT_FREQUENCY: usize = 128;
/// De... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/local_shard/snapshot_tests.rs | lib/collection/src/shards/local_shard/snapshot_tests.rs | use std::collections::HashSet;
use std::sync::Arc;
use common::save_on_disk::SaveOnDisk;
use common::tar_ext;
use fs_err::File;
use parking_lot::RwLock;
use segment::types::SnapshotFormat;
use shard::fixtures::{build_segment_1, build_segment_2};
use shard::payload_index_schema::PayloadIndexSchema;
use shard::segment_h... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/shards/shard_holder/shard_mapping.rs | lib/collection/src/shards/shard_holder/shard_mapping.rs | use std::collections::{HashMap, HashSet};
use std::ops;
use ahash::AHashMap;
use itertools::Itertools;
use segment::types::ShardKey;
use serde::{Deserialize, Serialize};
use crate::shards::shard::ShardId;
/// Shard key mapping type
#[derive(Clone, Debug, Default, Eq, PartialEq, Deserialize, Serialize)]
#[serde(from ... | 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.