Skip to main content

Module rechunk

Module rechunk 

Source
Expand description

Re-bucket cells into a different tile-extent layout.

The same schema may be re-tiled (different tile_extents) for a query that needs a different access pattern — e.g. a slice along one axis benefits from longer extents on that axis. Rechunk takes a single source tile and emits the (possibly multiple) target tiles that contain its cells.

Both source and target schemas must share name, dim arity, attrs and dim domains; only tile_extents may differ. The caller is responsible for that constraint — this is a pure re-bucket.

Functions§

rechunk_sparse
Re-bucket every cell in tile according to target_schema.tile_extents. Returns one entry per resulting target tile, ordered by TileId.