qdrant_client::qdrant

Struct CreateCollectionBuilder

source
pub struct CreateCollectionBuilder { /* private fields */ }
Expand description

Builder for CreateCollection.

Implementations§

source§

impl CreateCollectionBuilder

source

pub fn collection_name<VALUE: Into<String>>(self, value: VALUE) -> Self

Name of the collection

source

pub fn hnsw_config<VALUE: Into<HnswConfigDiff>>(self, value: VALUE) -> Self

Configuration of vector index

source

pub fn wal_config<VALUE: Into<WalConfigDiff>>(self, value: VALUE) -> Self

Configuration of the Write-Ahead-Log

source

pub fn optimizers_config<VALUE: Into<OptimizersConfigDiff>>( self, value: VALUE, ) -> Self

Configuration of the optimizers

source

pub fn shard_number(self, value: u32) -> Self

Number of shards in the collection, default is 1 for standalone, otherwise equal to the number of nodes. Minimum is 1

source

pub fn on_disk_payload(self, value: bool) -> Self

If true - point’s payload will not be stored in memory

source

pub fn timeout(self, value: u64) -> Self

Wait timeout for operation commit in seconds, if not specified - default value will be supplied

source

pub fn vectors_config<VALUE: Into<VectorsConfig>>(self, value: VALUE) -> Self

Configuration for vectors

source

pub fn replication_factor(self, value: u32) -> Self

Number of replicas of each shard that network tries to maintain, default = 1

source

pub fn write_consistency_factor(self, value: u32) -> Self

How many replicas should apply the operation for us to consider it successful, default = 1

source

pub fn init_from_collection<VALUE: Into<String>>(self, value: VALUE) -> Self

Specify name of the other collection to copy data from

source

pub fn quantization_config<VALUE: Into<Quantization>>( self, value: VALUE, ) -> Self

Quantization configuration of vector

source

pub fn sharding_method(self, value: i32) -> Self

Sharding method

source

pub fn sparse_vectors_config<VALUE: Into<SparseVectorConfig>>( self, value: VALUE, ) -> Self

Configuration for sparse vectors

source

pub fn strict_mode_config<VALUE: Into<StrictModeConfig>>( self, value: VALUE, ) -> Self

Configuration for strict mode

source§

impl CreateCollectionBuilder

source

pub fn build(self) -> CreateCollection

Builds the desired type. Can often be omitted.

source§

impl CreateCollectionBuilder

source

pub fn new(collection_name: impl Into<String>) -> Self

Trait Implementations§

source§

impl Default for CreateCollectionBuilder

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<CreateCollectionBuilder> for CreateCollection

source§

fn from(value: CreateCollectionBuilder) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more