Hi,
I'm working on a 'stack' version of a reader, in that I can
programmatically add documents, or 'jobs' to a reader as they become
available. I have a good idea of how to do it, but the edge case I
am concerned with is when I have an empty stack.
When the stack is empty, I don't want to end the run. The stack may
fill again in the future! OK, so I can set 'hasNext' to always
return true easily enough. But when calling 'getNext', what should I
set the jCas to so the pipeline safely 'no-ops?' Is there a way to do this?
Thanks!
Steve