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

Function schema

nodedb-array/src/codec/tile_encode.rs:136–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134 use nodedb_types::{OPEN_UPPER, Surrogate};
135
136 fn schema() -> crate::schema::ArraySchema {
137 ArraySchemaBuilder::new("t")
138 .dim(DimSpec::new(
139 "x",
140 DimType::Int64,
141 Domain::new(DomainBound::Int64(0), DomainBound::Int64(1_000_000)),
142 ))
143 .dim(DimSpec::new(
144 "y",
145 DimType::Int64,
146 Domain::new(DomainBound::Int64(0), DomainBound::Int64(1_000_000)),
147 ))
148 .attr(AttrSpec::new("v", AttrType::Int64, true))
149 .tile_extents(vec![1000, 1000])
150 .build()
151 .unwrap()
152 }
153
154 fn make_tile(s: &crate::schema::ArraySchema, n: usize) -> SparseTile {
155 let mut b = SparseTileBuilder::new(s);

Callers 7

small_tile_uses_raw_tagFunction · 0.70
small_tile_roundtripFunction · 0.70
large_tile_roundtripFunction · 0.70
version_byte_is_oneFunction · 0.70

Calls 4

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

Tested by 7

small_tile_uses_raw_tagFunction · 0.56
small_tile_roundtripFunction · 0.56
large_tile_roundtripFunction · 0.56
version_byte_is_oneFunction · 0.56