Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 61900 invoked from network); 22 Mar 2002 00:41:59 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 22 Mar 2002 00:41:59 -0000 Received: (qmail 11099 invoked by uid 97); 22 Mar 2002 00:42:05 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 11070 invoked by uid 97); 22 Mar 2002 00:42:04 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 11059 invoked from network); 22 Mar 2002 00:42:03 -0000 Message-ID: <009d01c1d13a$d1f9c540$0b01a8c0@168.1.8.Domainrelevanz> Reply-To: "Kelvin Tan" From: "Kelvin Tan" To: "Lucene Users List" References: <1016721194.22460.ezmlm@jakarta.apache.org> <3C9A13FD.5070905@earthlink.net> Subject: Re: Indexing and Duplication Date: Fri, 22 Mar 2002 08:45:09 +0800 Organization: Relevanz Pte Ltd MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > > 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: > For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: