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

Method pre_commit_transaction

src/indexes/mod.rs:143–151  ·  view source on GitHub ↗
(
        &self,
        collection: &Collection,
        version: VersionNumber,
        config: &Config,
    )

Source from the content-addressed store, hash-verified

141 fn flush(&self, collection: &Collection, version: VersionNumber) -> Result<(), WaCustomError>;
142
143 fn pre_commit_transaction(
144 &self,
145 collection: &Collection,
146 version: VersionNumber,
147 config: &Config,
148 ) -> Result<(), WaCustomError> {
149 self.force_index(collection, version, config)?;
150 self.flush(collection, version)
151 }
152
153 fn get_key_for_name(name: &str) -> u64 {
154 let mut hasher = SipHasher24::new();

Callers 1

pre_commitMethod · 0.80

Implementers 5

key_value.rssrc/indexes/key_value.rs
usv.rssrc/indexes/usv.rs
mod.rssrc/indexes/inverted/mod.rs
mod.rssrc/indexes/tf_idf/mod.rs
mod.rssrc/indexes/hnsw/mod.rs

Calls 2

force_indexMethod · 0.80
flushMethod · 0.45

Tested by

no test coverage detected