pub struct CreateCollectionBuilder { /* private fields */ }
Expand description
Builder for CreateCollection
.
Implementations§
source§impl CreateCollectionBuilder
impl CreateCollectionBuilder
sourcepub fn collection_name<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn collection_name<VALUE: Into<String>>(self, value: VALUE) -> Self
Name of the collection
sourcepub fn hnsw_config<VALUE: Into<HnswConfigDiff>>(self, value: VALUE) -> Self
pub fn hnsw_config<VALUE: Into<HnswConfigDiff>>(self, value: VALUE) -> Self
Configuration of vector index
sourcepub fn wal_config<VALUE: Into<WalConfigDiff>>(self, value: VALUE) -> Self
pub fn wal_config<VALUE: Into<WalConfigDiff>>(self, value: VALUE) -> Self
Configuration of the Write-Ahead-Log
sourcepub fn optimizers_config<VALUE: Into<OptimizersConfigDiff>>(
self,
value: VALUE,
) -> Self
pub fn optimizers_config<VALUE: Into<OptimizersConfigDiff>>( self, value: VALUE, ) -> Self
Configuration of the optimizers
sourcepub fn shard_number(self, value: u32) -> Self
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
sourcepub fn on_disk_payload(self, value: bool) -> Self
pub fn on_disk_payload(self, value: bool) -> Self
If true - point’s payload will not be stored in memory
sourcepub fn timeout(self, value: u64) -> Self
pub fn timeout(self, value: u64) -> Self
Wait timeout for operation commit in seconds, if not specified - default value will be supplied
sourcepub fn vectors_config<VALUE: Into<VectorsConfig>>(self, value: VALUE) -> Self
pub fn vectors_config<VALUE: Into<VectorsConfig>>(self, value: VALUE) -> Self
Configuration for vectors
sourcepub fn replication_factor(self, value: u32) -> Self
pub fn replication_factor(self, value: u32) -> Self
Number of replicas of each shard that network tries to maintain, default = 1
sourcepub fn write_consistency_factor(self, value: u32) -> Self
pub fn write_consistency_factor(self, value: u32) -> Self
How many replicas should apply the operation for us to consider it successful, default = 1
sourcepub fn init_from_collection<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn init_from_collection<VALUE: Into<String>>(self, value: VALUE) -> Self
Specify name of the other collection to copy data from
sourcepub fn quantization_config<VALUE: Into<Quantization>>(
self,
value: VALUE,
) -> Self
pub fn quantization_config<VALUE: Into<Quantization>>( self, value: VALUE, ) -> Self
Quantization configuration of vector
sourcepub fn sharding_method(self, value: i32) -> Self
pub fn sharding_method(self, value: i32) -> Self
Sharding method
sourcepub fn sparse_vectors_config<VALUE: Into<SparseVectorConfig>>(
self,
value: VALUE,
) -> Self
pub fn sparse_vectors_config<VALUE: Into<SparseVectorConfig>>( self, value: VALUE, ) -> Self
Configuration for sparse vectors
sourcepub fn strict_mode_config<VALUE: Into<StrictModeConfig>>(
self,
value: VALUE,
) -> Self
pub fn strict_mode_config<VALUE: Into<StrictModeConfig>>( self, value: VALUE, ) -> Self
Configuration for strict mode
source§impl CreateCollectionBuilder
impl CreateCollectionBuilder
sourcepub fn build(self) -> CreateCollection
pub fn build(self) -> CreateCollection
Builds the desired type. Can often be omitted.
Trait Implementations§
source§impl Default for CreateCollectionBuilder
impl Default for CreateCollectionBuilder
source§impl From<CreateCollectionBuilder> for CreateCollection
impl From<CreateCollectionBuilder> for CreateCollection
source§fn from(value: CreateCollectionBuilder) -> Self
fn from(value: CreateCollectionBuilder) -> Self
Auto Trait Implementations§
impl Freeze for CreateCollectionBuilder
impl RefUnwindSafe for CreateCollectionBuilder
impl Send for CreateCollectionBuilder
impl Sync for CreateCollectionBuilder
impl Unpin for CreateCollectionBuilder
impl UnwindSafe for CreateCollectionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request