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

Method getNextTuplesInternal

src/processor/operator/multiplicity_reducer.cpp:6–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace processor {
5
6bool MultiplicityReducer::getNextTuplesInternal(ExecutionContext* context) {
7 if (numRepeat == 0) {
8 restoreMultiplicity();
9 if (!children[0]->getNextTuple(context)) {
10 return false;
11 }
12 saveMultiplicity();
13 resultSet->multiplicity = 1;
14 }
15 numRepeat++;
16 if (numRepeat == prevMultiplicity) {
17 numRepeat = 0;
18 }
19 return true;
20}
21
22} // namespace processor
23} // namespace lbug

Callers

nothing calls this directly

Calls 1

getNextTupleMethod · 0.80

Tested by

no test coverage detected