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

Method serialize

src/models/inverted_index.rs:329–335  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

327 }
328
329 pub fn serialize(&self) -> Result<(), BufIoError> {
330 let cursor = self.cache.dim_bufman.open_cursor()?;
331 self.root
332 .serialize(&self.cache.dim_bufman, &self.cache.data_bufmans, cursor)?;
333 self.cache.dim_bufman.close_cursor(cursor)?;
334 Ok(())
335 }
336
337 pub fn deserialize(root_path: PathBuf, quantization_bits: u8) -> Result<Self, BufIoError> {
338 let dim_file = OpenOptions::new()

Callers

nothing calls this directly

Calls 2

open_cursorMethod · 0.80
close_cursorMethod · 0.80

Tested by

no test coverage detected