Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 58542 invoked from network); 15 Feb 2010 19:05:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Feb 2010 19:05:35 -0000 Received: (qmail 41269 invoked by uid 500); 15 Feb 2010 07:58:55 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 41181 invoked by uid 500); 15 Feb 2010 07:58:54 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 41173 invoked by uid 99); 15 Feb 2010 07:58:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Feb 2010 07:58:54 +0000 X-ASF-Spam-Status: No, hits=3.5 required=10.0 tests=HTML_MESSAGE,PLING_QUERY,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of serera@gmail.com designates 209.85.219.218 as permitted sender) Received: from [209.85.219.218] (HELO mail-ew0-f218.google.com) (209.85.219.218) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Feb 2010 07:58:47 +0000 Received: by ewy10 with SMTP id 10so3187006ewy.11 for ; Sun, 14 Feb 2010 23:58:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=cUBOPMYTDErQHVtW4/gLa6011c0OG10nqg2FnyBXArQ=; b=gdYOVvncNG02vVWtr7ZToVhtms7sEV7Y6wKilb5jH4yjZXUuwx+WErFGJgvUISH6rP aV9pmmQ3kYT+sDLSDK7X7I4UJSsmAloA0IfyVvoX0REZ5CYs3lvfoFyhxMQ5exk6MxBe 8r5p5crPD9CZ1I+2ESUQVV6+bWzFbAcY3dIN8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=wTrc7etpOADA/Gnl33wg++oxf4d/Bhz7GSLxBvAvnBXRXUhkIeMHh1n0TjlMI5NJ6P 1QpBzLlX/Pw0xl93qQuBN/k78LlZ6z2QTM1QVrrY59gEH5wLp6MxXhTxmbh8AfZ2k9PV fjukTMASSG7EoUJNkhZr+QyUXd6nVJbRFzSbk= MIME-Version: 1.0 Received: by 10.213.1.12 with SMTP id 12mr2471127ebd.58.1266220706143; Sun, 14 Feb 2010 23:58:26 -0800 (PST) In-Reply-To: <9ac0c6aa1002140245q11dd0205jf910c12dd2671f8@mail.gmail.com> References: <786fde51002131216t68ffbc9aqddd8609aa0f22177@mail.gmail.com> <9ac0c6aa1002140245q11dd0205jf910c12dd2671f8@mail.gmail.com> Date: Mon, 15 Feb 2010 09:58:26 +0200 Message-ID: <786fde51002142358q7b9247a0k2701e10160c84c80@mail.gmail.com> Subject: Re: IndexWriter.init() checks for infoStream != null, redundantly? From: Shai Erera To: java-dev@lucene.apache.org Content-Type: multipart/alternative; boundary=000e0cd6704065a046047f9efb2f --000e0cd6704065a046047f9efb2f Content-Type: text/plain; charset=ISO-8859-1 Ok, didn't know about that. Thanks ! On Sun, Feb 14, 2010 at 12:45 PM, Michael McCandless < lucene@mikemccandless.com> wrote: > IndexWriter has a default infoStream, so the infoStream could be > non-null during init. > > Mike > > On Sat, Feb 13, 2010 at 3:16 PM, Shai Erera wrote: > > Hi > > > > IndexWriter.init() checks a couple of times whether infoStream != null in > > order to print informative messages ... init() is called only from the > > ctors, which means infoStream will always be null at this point, no? > > Therefore I think those checks can be removed? Not for performance > reasons, > > but for clarity - no one should expect those messages to be printed out. > > > > BTW, would it make sense to add a ctor which accepts infoStream right > from > > the start, so that such messages will be printed out? > > > > I don't think an issue is needed (to remove the checks), however if there > is > > interest in adding a new ctor which accepts infoStream, then I can open > one. > > Even though I don't think those messages are really critical at this > stage > > of the system. > > > > Shai > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-dev-help@lucene.apache.org > > --000e0cd6704065a046047f9efb2f Content-Type: text/html; charset=ISO-8859-1
Ok, didn't know about that. Thanks !

On Sun, Feb 14, 2010 at 12:45 PM, Michael McCandless <lucene@mikemccandless.com> wrote:
IndexWriter has a default infoStream, so the infoStream could be
non-null during init.

Mike

On Sat, Feb 13, 2010 at 3:16 PM, Shai Erera <serera@gmail.com> wrote:
> Hi
>
> IndexWriter.init() checks a couple of times whether infoStream != null in
> order to print informative messages ... init() is called only from the
> ctors, which means infoStream will always be null at this point, no?
> Therefore I think those checks can be removed? Not for performance reasons,
> but for clarity - no one should expect those messages to be printed out.
>
> BTW, would it make sense to add a ctor which accepts infoStream right from
> the start, so that such messages will be printed out?
>
> I don't think an issue is needed (to remove the checks), however if there is
> interest in adding a new ctor which accepts infoStream, then I can open one.
> Even though I don't think those messages are really critical at this stage
> of the system.
>
> Shai
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


--000e0cd6704065a046047f9efb2f--