TableReadIter
is a class that allows for iteration over
a reads on SOMASparseNDArray and SOMADataFrame.
Iteration chunks are retrieved as an Arrow Table.
Super class
tiledbsoma::ReadIter
-> TableReadIter
Examples
dir <- withr::local_tempfile(pattern = "table-iter")
dir.create(dir, recursive = TRUE)
(exp <- load_dataset("soma-exp-pbmc-small", dir))
#> <SOMAExperiment>
#> uri: /tmp/RtmpjD0Pq2/table-iter27093f11957b/soma-exp-pbmc-small
qry <- exp$axis_query("RNA")
xqry <- qry$X("data")
iter <- xqry$tables()
stopifnot(inherits(iter, "TableReadIter"))
while (!iter$read_complete()) {
block <- iter$read_next()
}