[prev in list] [next in list] [prev in thread] [next in thread]
List: lucene-user
Subject: Re: TermDocs.close
From: Michael McCandless <lucene () mikemccandless ! com>
Date: 2009-12-27 12:11:04
Message-ID: 9ac0c6aa0912270411n776790c9n6e172d8f9faf2f34 () mail ! gmail ! com
[Download RAW message or body]
It's confusing... but it is in fact safe not closing it (for Lucene's
core IndexReader impls) -- because the IndexInputs that
SegmentTermDocs/Positions use are clones, their close methods are a
no-op.
Mike
On Sun, Dec 27, 2009 at 6:37 AM, John Wang <john.wang@gmail.com> wrote:
> Hi:
> I see TermDocs.close not being called when created with TermQuery:
> TermQuery creates it and passes to TermScorer, and is never closed.
> I see TermDocs.close actually closes the input stream.
> Is it safe not closing TermDocs?
> Thanks
> -John
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic