row_sharded_source() presents compatible child sources as one logical
observation-by-feature array. Stable shard IDs and explicit boundaries make
global-to-local row routing inspectable and serializable. Reads are grouped
by touched shard, so an arbitrary ordered selector is issued at most once to
each selected child.
Examples
shards <- list(
memory_source(matrix(1:4, nrow = 2)),
memory_source(matrix(5:8, nrow = 2))
)
src <- row_sharded_source(shards)
source_shape(src)
#> [1] 4 2