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

Method finalize

nodedb/src/data/executor/handlers/accum/state.rs:97–103  ·  view source on GitHub ↗
(self, aggregates: &[AggregateSpec])

Source from the content-addressed store, hash-verified

95 }
96
97 pub(crate) fn finalize(self, aggregates: &[AggregateSpec]) -> Vec<(String, Value)> {
98 self.accums
99 .into_iter()
100 .zip(aggregates)
101 .map(|(accum, agg)| (agg.alias.clone(), accum.finalize(agg)))
102 .collect()
103 }
104}

Callers 15

sha256Function · 0.45
compute_hmacFunction · 0.45
hash_secretFunction · 0.45
create_tenantFunction · 0.45
mint_tokenFunction · 0.45
execute_grouping_setsFunction · 0.45
execute_aggregateMethod · 0.45
try_columnar_aggregateFunction · 0.45
merge_from_sum_avgFunction · 0.45
merge_from_welfordFunction · 0.45

Calls 2

collectMethod · 0.80
cloneMethod · 0.45

Tested by 6

merge_from_sum_avgFunction · 0.36
merge_from_welfordFunction · 0.36
merge_from_hllFunction · 0.36
merge_from_tdigestFunction · 0.36
merge_from_topkFunction · 0.36