Skip to main content

ChunkedWriter

Trait ChunkedWriter 

Source
pub trait ChunkedWriter {
    // Required method
    fn export_chunked(&self, chunk_size: usize) -> ChunkIter<'_> ;
}
Expand description

A trait for exporting data in chunks.

Required Methods§

Source

fn export_chunked(&self, chunk_size: usize) -> ChunkIter<'_>

Returns an iterator that yields chunks of serialized data.

§Arguments
  • chunk_size - Maximum size of each chunk in bytes. Values below MIN_CHUNK_SIZE (64 bytes) are clamped to the minimum.
§Chunk Size Constraints

The minimum effective chunk size is 64 bytes (file header size). Passing a smaller value will not cause an error; instead, the implementation clamps it to MIN_CHUNK_SIZE.

Implementations on Foreign Types§

Source§

impl<'a> ChunkedWriter for (&'a VectorStorage, &'a HnswIndex)

Source§

fn export_chunked(&self, chunk_size: usize) -> ChunkIter<'a>

Implementors§