MCPcopy Create free account
hub / github.com/apache/arrow / Next

Method Next

cpp/src/arrow/csv/writer.cc:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81struct SliceIteratorFunctor {
82 Result<std::shared_ptr<RecordBatch>> Next() {
83 if (current_offset < batch->num_rows()) {
84 std::shared_ptr<RecordBatch> next = batch->Slice(current_offset, slice_size);
85 current_offset += slice_size;
86 return next;
87 }
88 return IterationTraits<std::shared_ptr<RecordBatch>>::End();
89 }
90 const RecordBatch* const batch;
91 const int64_t slice_size;
92 int64_t current_offset;

Callers 1

WriteCSVFunction · 0.45

Calls 3

EndFunction · 0.50
num_rowsMethod · 0.45
SliceMethod · 0.45

Tested by

no test coverage detected