Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 64841 invoked from network); 23 Sep 2010 14:30:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Sep 2010 14:30:17 -0000 Received: (qmail 39337 invoked by uid 500); 23 Sep 2010 14:30:16 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 38772 invoked by uid 500); 23 Sep 2010 14:30:13 -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 38763 invoked by uid 99); 23 Sep 2010 14:30:12 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Sep 2010 14:30:12 +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, 23 Sep 2010 14:29:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8NETW1b003081 for ; Thu, 23 Sep 2010 14:29:33 GMT Message-ID: <3235285.364661285252172662.JavaMail.jira@thor> Date: Thu, 23 Sep 2010 10:29:32 -0400 (EDT) From: "Yonik Seeley (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-2649) FieldCache should include a BitSet for matching docs In-Reply-To: <3738400.244411284693932822.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-2649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12914044#action_12914044 ] Yonik Seeley commented on LUCENE-2649: -------------------------------------- Now we're talking! Q: why aren't the CachePopulator methods just directly on EntryConfig - was it easier to share implementations that way or something? Also: - It doesn't seem like we need two methods fillValidBits , fillByteValues - shouldn't it just be one method that looks at the config and fills in the appropriate entries based on cacheValidBits() and cacheValues()? - We should allow an implementation to create subclasses of ByteValues, etc... what about this method: public abstract CachedArray fillEntry( CachedArray vals, IndexReader reader, String field, EntryConfig creator ) That way, an existing entry can be filled in (i.e. vals != null) or a new entry can be created. Oh, wait, I see further down a "ByteValues createValue()" - if that's meant to be a method on CachePopulator, I guess it's all good - my main concern was being able to create subclasses of ByteValues and frields. Anyway, all that's off the top of my head - I'm sure you've thought about it more at this point. > FieldCache should include a BitSet for matching docs > ---------------------------------------------------- > > Key: LUCENE-2649 > URL: https://issues.apache.org/jira/browse/LUCENE-2649 > Project: Lucene - Java > Issue Type: Improvement > Reporter: Ryan McKinley > Fix For: 4.0 > > Attachments: LUCENE-2649-FieldCacheWithBitSet.patch, LUCENE-2649-FieldCacheWithBitSet.patch, LUCENE-2649-FieldCacheWithBitSet.patch, LUCENE-2649-FieldCacheWithBitSet.patch, LUCENE-2649-FieldCacheWithBitSet.patch > > > The FieldCache returns an array representing the values for each doc. However there is no way to know if the doc actually has a value. > This should be changed to return an object representing the values *and* a BitSet for all valid docs. -- 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