I don't know how MAX_SPOUT_PENDING works, but, I bet it works by throttling calls to nextTuple(). If that is the case, calling SpoutOutputCollector.emit() multiple times within one call to nextTuple() would tend to over ride that throttle.
Thank you for your time! +++++++++++++++++++++ Jeff Maass <[email protected]> linkedin.com/in/jeffmaass stackoverflow.com/users/373418/maassql +++++++++++++++++++++ On Tue, May 12, 2015 at 12:30 PM, Nathan Leung <[email protected]> wrote: > Yes. It's best not to loop for a very long time, but you can call it > multiple times. > On May 12, 2015 1:12 PM, "Adam Mitchell" <[email protected]> > wrote: > >> If I've got a bunch of data in memory, ready to emit, can nextTuple() go >> ahead and call SpoutOutputCollector.emit() many times? >> >> Or is it best to emit() once per call to nextTuple()? >> >> >>
