Operator::GetNextResultT IntGeneratorOp::getNext(unsigned short threadid) { dbgassert(output.at(threadid) != NULL); Page* out = output[threadid]; out->clear(); while (out->canStoreTuple()) { void* tuple = produceOne(threadid); if (tuple == NULL) return make_pair(Finished, out); void* target = out->allocateTuple(); dbgassert(target != NULL); schema.copyTuple(target, tuple); } return make_pair(Ready, out); }