MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / getArray

Method getArray

src/main/query_result/arrow_query_result.cpp:288–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288ArrowArray ArrowQueryResult::getArray(FactorizedTableIterator& iterator, int64_t chunkSize) {
289 auto rowBatch = ArrowRowBatch(columnTypes, chunkSize, false /* fallbackExtensionTypes */);
290 auto rowBatchSize = 0u;
291 while (rowBatchSize < chunkSize) {
292 if (!iterator.hasNext()) {
293 break;
294 }
295 (void)iterator.getNext(*tuple);
296 rowBatch.append(*tuple);
297 rowBatchSize++;
298 numTuples++;
299 }
300 return rowBatch.toArray(columnTypes);
301}
302
303bool ArrowQueryResult::hasNext() const {
304 throw NotImplementedException(

Callers

nothing calls this directly

Calls 5

toArrayMethod · 0.80
ArrowRowBatchClass · 0.50
hasNextMethod · 0.45
getNextMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected