% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tables.R
\name{row_layout}
\alias{row_layout}
\title{Row layout for fixed-row table outputs}
\usage{
row_layout(shards, rows_per_shard)
}
\arguments{
\item{shards}{A \code{shard_descriptor}.}

\item{rows_per_shard}{Either a scalar integer or a function(shard)->integer.}
}
\value{
A named list mapping shard id (character) to an \code{idx_range(start, end)}.
}
\description{
Computes disjoint row ranges for each shard via prefix-sum, enabling lock-free
writes where each shard writes to a unique region.
}
\examples{
\donttest{
sh <- shards(100, block_size = 25)
layout <- row_layout(sh, rows_per_shard = 25L)
}
}
