MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / insert

Method insert

nodedb/src/engine/timeseries/o3_buffer.rs:44–51  ·  view source on GitHub ↗

Insert an out-of-order row. Returns true if accepted, false if buffer full.

(&mut self, row: O3Row)

Source from the content-addressed store, hash-verified

42
43 /// Insert an out-of-order row. Returns true if accepted, false if buffer full.
44 pub fn insert(&mut self, row: O3Row) -> bool {
45 if self.rows.len() >= self.max_rows {
46 return false;
47 }
48 self.sorted = false;
49 self.rows.push(row);
50 true
51 }
52
53 /// Query: find all rows in this buffer that fall within a time range.
54 ///

Callers 15

addMethod · 0.45
drain_for_partitionFunction · 0.45
dedup_last_write_winsFunction · 0.45
target_partition_countFunction · 0.45
write_packedFunction · 0.45
infer_schemaFunction · 0.45
evolve_schemaFunction · 0.45
kahan_accuracyFunction · 0.45
merge_tag_valuesFunction · 0.45

Calls 2

lenMethod · 0.45
pushMethod · 0.45

Tested by 7

drain_for_partitionFunction · 0.36
dedup_last_write_winsFunction · 0.36
target_partition_countFunction · 0.36
kahan_accuracyFunction · 0.36