lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelvin Tan" <kel...@relevanz.com>
Subject Re: Indexing and Duplication
Date Fri, 22 Mar 2002 00:45:09 GMT

> >
> Yes, I think if the Reader is a regular FileReader that has been opened,
> it would consume the file handle. On the other hand, if it is just a
> String or a StringReader it would consume memory equal (probably
> greater) to the size of the data. One way to fix this is to create your
> own Reader class, say DelayedReader, which does not open a file upon
> creation, but only upon the first read. That would help safe the file
> handles.

That's an excellent suggestion actually, Dmitry. Thanks!

>
> Dmitry
>
>
> --
> To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message