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

Function schema

nodedb-array/src/coord/encode.rs:64–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 use crate::types::domain::{Domain, DomainBound};
63
64 fn schema() -> ArraySchema {
65 ArraySchemaBuilder::new("g")
66 .dim(DimSpec::new(
67 "x",
68 DimType::Int64,
69 Domain::new(DomainBound::Int64(0), DomainBound::Int64(31)),
70 ))
71 .dim(DimSpec::new(
72 "y",
73 DimType::Int64,
74 Domain::new(DomainBound::Int64(0), DomainBound::Int64(31)),
75 ))
76 .attr(AttrSpec::new("v", AttrType::Int64, false))
77 .tile_extents(vec![8, 8])
78 .build()
79 .unwrap()
80 }
81
82 #[test]
83 fn hilbert_prefix_distinct_for_distinct_cells() {

Calls 4

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