MCPcopy Create free account
hub / github.com/cosdata/cosdata / vector_count

Method vector_count

src/models/collection_transaction.rs:345–351  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

343
344impl TransactionStatus {
345 pub fn vector_count(&self) -> u32 {
346 match self {
347 Self::NotStarted { .. } => 0,
348 Self::InProgress { stats, .. } => stats.records_upserted,
349 Self::Complete { stats, .. } => stats.records_upserted,
350 }
351 }
352
353 pub fn increment_vector_count(&mut self, count: u32) {
354 match self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected