lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: Lazy Field Loading
Date Wed, 29 Mar 2006 20:16:18 GMT
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message