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

Function schema

nodedb-array/src/query/slice.rs:187–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185 use crate::types::domain::Domain;
186
187 fn schema() -> ArraySchema {
188 ArraySchemaBuilder::new("g")
189 .dim(DimSpec::new(
190 "x",
191 DimType::Int64,
192 Domain::new(DomainBound::Int64(0), DomainBound::Int64(99)),
193 ))
194 .dim(DimSpec::new(
195 "y",
196 DimType::Int64,
197 Domain::new(DomainBound::Int64(0), DomainBound::Int64(99)),
198 ))
199 .attr(AttrSpec::new("v", AttrType::Int64, true))
200 .tile_extents(vec![10, 10])
201 .build()
202 .unwrap()
203 }
204
205 fn tile(rows: &[(i64, i64, i64)]) -> SparseTile {
206 let s = schema();

Callers 3

tileFunction · 0.70

Calls 4

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

Tested by 2