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

Function schema

nodedb-array/src/segment/writer.rs:133–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131 }
132
133 fn schema() -> crate::schema::ArraySchema {
134 ArraySchemaBuilder::new("g")
135 .dim(DimSpec::new(
136 "x",
137 DimType::Int64,
138 Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)),
139 ))
140 .dim(DimSpec::new(
141 "y",
142 DimType::Int64,
143 Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)),
144 ))
145 .attr(AttrSpec::new("v", AttrType::Int64, true))
146 .tile_extents(vec![4, 4])
147 .build()
148 .unwrap()
149 }
150
151 fn sparse_tile(s: &crate::schema::ArraySchema) -> SparseTile {
152 let mut b = SparseTileBuilder::new(s);

Calls 4

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