Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 13874 invoked from network); 16 Sep 2010 10:35:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Sep 2010 10:35:19 -0000 Received: (qmail 12727 invoked by uid 500); 16 Sep 2010 10:35:18 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 12188 invoked by uid 500); 16 Sep 2010 10:35:15 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 12165 invoked by uid 99); 16 Sep 2010 10:35:14 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Sep 2010 10:35:14 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Sep 2010 10:34:55 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8GAYX5R020551 for ; Thu, 16 Sep 2010 10:34:34 GMT Message-ID: <31344070.224421284633273603.JavaMail.jira@thor> Date: Thu, 16 Sep 2010 06:34:33 -0400 (EDT) From: "Simon Willnauer (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-2647) Move & rename the terms dict, index, abstract postings out of oal.index.codecs.standard In-Reply-To: <8256162.223701284630572506.JavaMail.jira@thor> 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-2647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12910081#action_12910081 ] Simon Willnauer commented on LUCENE-2647: ----------------------------------------- Mike, I think renaming is a good idea - that might make things slightly easier for folks to play around with codec here are some comments on the naming: bq.StandardTermsDictWriter/Reader -> PrefixCodedTermsWriter/Reader +1 bq. StandardTermsIndexWriter/Reader -> AbstractTermsIndexWriter/Reader What about TermsIndexWriter/ReaderBase since we started using that scheme with analyzers and the JDK uses that too. If we remove the abstractness one day the name is very miss-leading but the property of being a base class will likely remain. bq. SimpleStandardTermsIndexWriter/Reader -> SimpleTermsIndexWriter/Reader I really don't like Simple* its like Smart which makes me immediately feel itchy all over the place. What differentiates this from others? It is the default? maybe DefaultTermsIndexWriter/Reader? bq. StandardPostingsWriter/Reader -> AbstractPostingsWriter/Reader Again, what about PostingWriter/ReaderBase bq. StandardPostingsWriterImpl/ReaderImple -> StandardPostingsWriter/Reader +1 > Move & rename the terms dict, index, abstract postings out of oal.index.codecs.standard > --------------------------------------------------------------------------------------- > > Key: LUCENE-2647 > URL: https://issues.apache.org/jira/browse/LUCENE-2647 > Project: Lucene - Java > Issue Type: Improvement > Components: Index > Affects Versions: 4.0 > Reporter: Michael McCandless > Assignee: Michael McCandless > Priority: Minor > Fix For: 4.0 > > Attachments: LUCENE-2647.patch > > > The terms dict components that current live under Standard codec > (oal.index.codecs.standard.*) are in fact very generic, and in no way > particular to the Standard codec. Already we have many other codecs > (sep, fixed int block, var int block, pulsing, appending) that re-use > the terms dict writer/reader components. > So I'd like to move these out into oal.index.codecs, and rename them: > * StandardTermsDictWriter/Reader -> PrefixCodedTermsWriter/Reader > * StandardTermsIndexWriter/Reader -> AbstractTermsIndexWriter/Reader > * SimpleStandardTermsIndexWriter/Reader -> SimpleTermsIndexWriter/Reader > * StandardPostingsWriter/Reader -> AbstractPostingsWriter/Reader > * StandardPostingsWriterImpl/ReaderImple -> StandardPostingsWriter/Reader > With this move we have a nice reusable terms dict impl. The terms > index impl is still well-decoupled so eg we could [in theory] explore > a variable gap terms index. > Many codecs, I expect, don't need/want to implement their own terms > dict.... > There are no code/index format changes here, besides the renaming & > fixing all imports/usages of the renamed class. -- 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: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org