()
| 340 | use crate::types::domain::{Domain, DomainBound}; |
| 341 | |
| 342 | fn schema() -> ArraySchema { |
| 343 | ArraySchemaBuilder::new("t") |
| 344 | .dim(DimSpec::new( |
| 345 | "x", |
| 346 | DimType::Int64, |
| 347 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(1000)), |
| 348 | )) |
| 349 | .attr(AttrSpec::new("v", AttrType::Int64, true)) |
| 350 | .tile_extents(vec![100]) |
| 351 | .build() |
| 352 | .unwrap() |
| 353 | } |
| 354 | |
| 355 | /// Write a segment with the given (TileId, SparseTile) pairs (must be |
| 356 | /// strictly ascending by TileId) and return the in-memory bytes. |