Grant Ingersoll wrote:
My main concern is the semantics of the fieldsStream and whether that would be closed behind the back of the LazyField implementation. My understanding is that as long as the IndexReader is open, this stream should also be open. Is that correct? What am I forgetting about?
You need to make sure that access to the stream is synchronized, so that one thread doesn't move the file pointer while someone else is reading. You could use a cloned stream in a ThreadLocal to avoid contention.
Doug --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]