| 185 | use crate::types::domain::Domain; |
| 186 | |
| 187 | fn schema() -> ArraySchema { |
| 188 | ArraySchemaBuilder::new("g") |
| 189 | .dim(DimSpec::new( |
| 190 | "x", |
| 191 | DimType::Int64, |
| 192 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(99)), |
| 193 | )) |
| 194 | .dim(DimSpec::new( |
| 195 | "y", |
| 196 | DimType::Int64, |
| 197 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(99)), |
| 198 | )) |
| 199 | .attr(AttrSpec::new("v", AttrType::Int64, true)) |
| 200 | .tile_extents(vec![10, 10]) |
| 201 | .build() |
| 202 | .unwrap() |
| 203 | } |
| 204 | |
| 205 | fn tile(rows: &[(i64, i64, i64)]) -> SparseTile { |
| 206 | let s = schema(); |