Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 35709 invoked from network); 4 Jun 2010 16:55:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Jun 2010 16:55:05 -0000 Received: (qmail 58917 invoked by uid 500); 4 Jun 2010 16:55:04 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 58875 invoked by uid 500); 4 Jun 2010 16:55:04 -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 58868 invoked by uid 99); 4 Jun 2010 16:55:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 16:55:04 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of serera@gmail.com designates 209.85.160.176 as permitted sender) Received: from [209.85.160.176] (HELO mail-gy0-f176.google.com) (209.85.160.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 16:54:57 +0000 Received: by gyf1 with SMTP id 1so1585195gyf.35 for ; Fri, 04 Jun 2010 09:54:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Hx01Zo8elF2GPOIBBIHaMeOD1CsZaFX8FiPR1iCcpqk=; b=i3O/PibfCGzgOOUZuncImDpQW82u2e1ae8qSA078mO22YIKKftZ1kpm7/e2Qk9Tiyr Vpu5eWKqHZPc9gtRQMOxmRUzwm6epP6LMotsP7whBc2UONtoAbyPOifPQ86Wwbq77UwI xBmXoTLOYoaZRKjMe9ZTfeEkDhKj+cOtf/ilM= 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:content-transfer-encoding; b=RXf6SMg/AMpD7GXepNGZIB9l9R9YlF6yCed9TvztUWQi3nPo96dJilns9FfMN4MJ58 Nf4hU0p5eqD9ww1xF2WJVZl1ZAEhZ6b4FEazFueL5/pdJ9crQDY9fCfdEcS3/SOgb/oJ SXhxtPEX0D4+ky2gFcUvrNP56QIrCeK9iTqW0= MIME-Version: 1.0 Received: by 10.101.129.10 with SMTP id g10mr12533203ann.31.1275670476795; Fri, 04 Jun 2010 09:54:36 -0700 (PDT) Received: by 10.100.105.15 with HTTP; Fri, 4 Jun 2010 09:54:36 -0700 (PDT) In-Reply-To: References: Date: Fri, 4 Jun 2010 19:54:36 +0300 Message-ID: Subject: Re: Extending FieldCache From: Shai Erera To: "dev@lucene.apache.org" , "yonik@lucidimagination.com" Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Actually DEFAULT is not defined final, but I haven't tried assigning a value to it. Anyway, even if that's resolved, the API relies only on the field name, and if I need to pass a Term then it's not reallly possible. I've also looked at LUCENE-831 but it seems this work is on hold for more than a year =85 I can impl my cache layer and duplicate TopFieldCollector logic. Thanks anyway, Shai On Friday, June 4, 2010, Yonik Seeley wrote: > On Fri, Jun 4, 2010 at 4:38 AM, Shai Erera wrote: >> I've looked into extending FieldCache, so that I can read the values to >> cache in a custom manner (not necessarily from the field's values). Just >> want to confirm my understanding - it looks like if I want to do it, I'l= l >> need to create my own FieldCache impl, and then set FieldCache.DEFAULT w= ith >> it? > > Interface members are final, so you can't actually implement your own. > > -Yonik > http://www.lucidimagination.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: dev-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org