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

Function schema

nodedb-array/src/query/rechunk.rs:87–103  ·  view source on GitHub ↗
(extents: Vec<u64>)

Source from the content-addressed store, hash-verified

85 use crate::types::domain::{Domain, DomainBound};
86
87 fn schema(extents: Vec<u64>) -> ArraySchema {
88 ArraySchemaBuilder::new("g")
89 .dim(DimSpec::new(
90 "x",
91 DimType::Int64,
92 Domain::new(DomainBound::Int64(0), DomainBound::Int64(99)),
93 ))
94 .dim(DimSpec::new(
95 "y",
96 DimType::Int64,
97 Domain::new(DomainBound::Int64(0), DomainBound::Int64(99)),
98 ))
99 .attr(AttrSpec::new("v", AttrType::Int64, true))
100 .tile_extents(extents)
101 .build()
102 .unwrap()
103 }
104
105 #[test]
106 fn rechunk_splits_into_smaller_tiles() {

Calls 4

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

Tested by 2