| 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); |