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

Method Next

cpp/src/arrow/acero/test_nodes.cc:53–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 label(std::move(label)),
52 noisy(noisy) {}
53 std::optional<ExecBatch> Next() {
54 Result<std::optional<ExecBatch>> opt_batch_res = batch_it.Next();
55 if (!opt_batch_res.ok()) {
56 return std::nullopt;
57 }
58 std::optional<ExecBatch> opt_batch = opt_batch_res.ValueOrDie();
59 if (!opt_batch) {
60 return std::nullopt;
61 }
62 if (noisy) {
63 std::cout << label + ": asking for batch(" + std::to_string(index) + ")\n";
64 }
65 SleepFor(delay_sec);
66 ++index;
67 return *opt_batch;
68 }
69
70 Iterator<std::optional<ExecBatch>> batch_it;
71 double delay_sec;

Callers 8

ReadNextMethod · 0.45
SumMethod · 0.45
TESTFunction · 0.45
RunGroupByFunction · 0.45
MakeDelayedGenFunction · 0.45
TestPauseThenStopFunction · 0.45
DoFinishMethod · 0.45

Calls 4

to_stringFunction · 0.85
SleepForFunction · 0.85
ValueOrDieMethod · 0.80
okMethod · 0.45

Tested by

no test coverage detected