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

Function schema

nodedb/src/engine/array/memtable/tile_buffer.rs:328–344  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

326 use nodedb_array::types::domain::{Domain, DomainBound};
327
328 fn schema() -> ArraySchema {
329 ArraySchemaBuilder::new("a")
330 .dim(DimSpec::new(
331 "x",
332 DimType::Int64,
333 Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)),
334 ))
335 .dim(DimSpec::new(
336 "y",
337 DimType::Int64,
338 Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)),
339 ))
340 .attr(AttrSpec::new("v", AttrType::Int64, true))
341 .tile_extents(vec![4, 4])
342 .build()
343 .unwrap()
344 }
345
346 fn coord(x: i64, y: i64) -> Vec<CoordValue> {
347 vec![CoordValue::Int64(x), CoordValue::Int64(y)]

Calls 4

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