Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ encode
Function
encode
nodedb-query/src/msgpack_scan/aggregate.rs:428–430 ·
view source on GitHub ↗
(v: &serde_json::Value)
Source
from the content-addressed store, hash-verified
426
use serde_json::json;
427
428
fn encode(v: &serde_json::Value) -> Vec<u8> {
429
nodedb_types::json_msgpack::json_to_msgpack(v).expect(
"encode"
)
430
}
431
432
#[test]
433
fn count() {
Callers
15
count
Function · 0.70
sum
Function · 0.70
avg
Function · 0.70
avg_empty
Function · 0.70
min_max
Function · 0.70
count_distinct
Function · 0.70
string_agg
Function · 0.70
array_agg
Function · 0.70
stddev_pop
Function · 0.70
percentile_cont_median
Function · 0.70
missing_field_skipped
Function · 0.70
null_field_skipped_in_count_distinct
Function · 0.70
Calls
2
json_to_msgpack
Function · 0.50
expect
Method · 0.45
Tested by
15
count
Function · 0.56
sum
Function · 0.56
avg
Function · 0.56
avg_empty
Function · 0.56
min_max
Function · 0.56
count_distinct
Function · 0.56
string_agg
Function · 0.56
array_agg
Function · 0.56
stddev_pop
Function · 0.56
percentile_cont_median
Function · 0.56
missing_field_skipped
Function · 0.56
null_field_skipped_in_count_distinct
Function · 0.56