Class that allows for blockwise read iteration of SOMA reads
as Arrow Tables
.
Super classes
tiledbsoma::ReadIter
-> tiledbsoma::BlockwiseReadIterBase
-> BlockwiseTableReadIter
Examples
dir <- withr::local_tempfile(pattern = "blockwise-table")
dir.create(dir, recursive = TRUE)
(exp <- load_dataset("soma-exp-pbmc-small", dir))
#> <SOMAExperiment>
#> uri: /tmp/RtmpjD0Pq2/blockwise-table27091038a069/soma-exp-pbmc-small
qry <- exp$axis_query("RNA")
xqry <- qry$X("data")
iter <- xqry$blockwise(0L, size = 20L, reindex_disable_on_axis = TRUE)$tables()
stopifnot(inherits(iter, "BlockwiseTableReadIter"))
while (!iter$read_complete()) {
block <- iter$read_next()
}