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

Function schema

nodedb-array/src/query/aggregate.rs:234–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232 use crate::types::domain::{Domain, DomainBound};
233
234 fn schema() -> ArraySchema {
235 ArraySchemaBuilder::new("g")
236 .dim(DimSpec::new(
237 "k",
238 DimType::Int64,
239 Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)),
240 ))
241 .attr(AttrSpec::new("v", AttrType::Float64, true))
242 .tile_extents(vec![16])
243 .build()
244 .unwrap()
245 }
246
247 fn tile(rows: &[(i64, Option<f64>)]) -> SparseTile {
248 let s = schema();

Callers 1

tileFunction · 0.70

Calls 4

buildMethod · 0.45
tile_extentsMethod · 0.45
attrMethod · 0.45
dimMethod · 0.45

Tested by

no test coverage detected