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

Function schema

nodedb-array/src/segment/reader.rs:389–405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

387 use crate::types::domain::{Domain, DomainBound};
388
389 fn schema() -> crate::schema::ArraySchema {
390 ArraySchemaBuilder::new("g")
391 .dim(DimSpec::new(
392 "x",
393 DimType::Int64,
394 Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)),
395 ))
396 .dim(DimSpec::new(
397 "y",
398 DimType::Int64,
399 Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)),
400 ))
401 .attr(AttrSpec::new("v", AttrType::Int64, true))
402 .tile_extents(vec![4, 4])
403 .build()
404 .unwrap()
405 }
406
407 fn make_sparse(s: &crate::schema::ArraySchema, base: i64) -> SparseTile {
408 let mut b = SparseTileBuilder::new(s);

Calls 4

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