| 4 | namespace processor { |
| 5 | |
| 6 | bool 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 |
nothing calls this directly
no test coverage detected