##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (rs, rsProcessor, batchSize = 1000)
{
while (TRUE) {
chunk = fetch(rs, n = batchSize)
if (dim(chunk)[1] == 0)
break
rsProcessor(chunk)
}
}
Run the code above in your browser using DataLab