MCPcopy Create free account
hub / github.com/carsonpo/haystackdb / len

Method len

src/structures/dense_vector_list.rs:177–179  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

175 }
176
177 pub fn len(&self) -> usize {
178 self.used_space / QUANTIZED_VECTOR_SIZE
179 }
180
181 pub fn insert(&mut self, index: usize, vector: [u8; QUANTIZED_VECTOR_SIZE]) -> io::Result<()> {
182 let offset = HEADER_SIZE + index * QUANTIZED_VECTOR_SIZE;

Callers 15

get_range_nodeMethod · 0.80
serializeMethod · 0.80
insert_non_fullMethod · 0.80
is_node_fullMethod · 0.80
search_nodeMethod · 0.80
newMethod · 0.80
pushMethod · 0.80
batch_pushMethod · 0.80
serializeMethod · 0.80
deserializeMethod · 0.80
add_to_walMethod · 0.80
batch_add_to_walMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected