Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 92976 invoked from network); 24 Feb 2010 16:56:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Feb 2010 16:56:51 -0000 Received: (qmail 3088 invoked by uid 500); 24 Feb 2010 16:56:50 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 3030 invoked by uid 500); 24 Feb 2010 16:56:50 -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 3022 invoked by uid 99); 24 Feb 2010 16:56:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 16:56:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 16:56:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DB77429A0012 for ; Wed, 24 Feb 2010 08:56:27 -0800 (PST) Message-ID: <1643393754.498171267030587897.JavaMail.jira@brutus.apache.org> Date: Wed, 24 Feb 2010 16:56:27 +0000 (UTC) From: "Michael McCandless (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-2282) Expose IndexFileNames as public, and make use of its methods in the code In-Reply-To: <2015928755.471731266958408367.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837879#action_12837879 ] Michael McCandless commented on LUCENE-2282: -------------------------------------------- Patch looks good Shai! But I don't think we should back port to 3.0.2 -- it's non-trivial enough that there is some risk? As the API is now marked @lucene.internal, and it'll only be very expert usage, I'm not as concerned as Marvin is about the risks of even exposing this. Also, even with flex, a good number of Lucene's index files are not under codec control (codec only touches postings files -- .tis, .tii, .frq, .prx for the standard codec). But I do agree it's not ideal that the knowledge of file extensions is split across this class and the codec. The IndexFileNameFilter in flex now takes a Codec as input, to make up for that... but IndexFileNames just has a NOTE at the top stating the limitation. > Expose IndexFileNames as public, and make use of its methods in the code > ------------------------------------------------------------------------ > > Key: LUCENE-2282 > URL: https://issues.apache.org/jira/browse/LUCENE-2282 > Project: Lucene - Java > Issue Type: Improvement > Reporter: Shai Erera > Assignee: Michael McCandless > Fix For: 3.1 > > Attachments: LUCENE-2282.patch, LUCENE-2282.patch, LUCENE-2282.patch > > > IndexFileNames is useful for applications that extend Lucene, an in particular those who extend Directory or IndexWriter. It provides useful constants and methods to query whether a certain file is a core Lucene file or not. In addition, IndexFileNames should be used by Lucene's code to generate segment file names, or query whether a certain file matches a certain extension. > I'll post the patch shortly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org