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

Function schema

nodedb-array/src/tile/layout.rs:100–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98 use crate::types::domain::Domain;
99
100 fn schema() -> ArraySchema {
101 ArraySchemaBuilder::new("g")
102 .dim(DimSpec::new(
103 "x",
104 DimType::Int64,
105 Domain::new(DomainBound::Int64(0), DomainBound::Int64(99)),
106 ))
107 .dim(DimSpec::new(
108 "y",
109 DimType::Int64,
110 Domain::new(DomainBound::Int64(0), DomainBound::Int64(99)),
111 ))
112 .attr(AttrSpec::new("v", AttrType::Int64, false))
113 .tile_extents(vec![10, 10])
114 .build()
115 .unwrap()
116 }
117
118 #[test]
119 fn tile_indices_floor_by_extent() {

Calls 4

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