From oak-dev-return-3061-apmail-jackrabbit-oak-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Wed Dec 5 14:04:31 2012 Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7C73FEC2D for ; Wed, 5 Dec 2012 14:04:31 +0000 (UTC) Received: (qmail 1820 invoked by uid 500); 5 Dec 2012 14:04:31 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 1796 invoked by uid 500); 5 Dec 2012 14:04:31 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 1784 invoked by uid 99); 5 Dec 2012 14:04:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2012 14:04:30 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of teofili@adobe.com designates 64.18.1.77 as permitted sender) Received: from [64.18.1.77] (HELO exprod6og126.obsmtp.com) (64.18.1.77) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2012 14:04:22 +0000 Received: from outbound-smtp-2.corp.adobe.com ([193.104.215.16]) by exprod6ob126.postini.com ([64.18.5.12]) with SMTP ID DSNKUL9UUZByqYJrlG+dCfXBtCIP7l9ST6r+@postini.com; Wed, 05 Dec 2012 06:04:02 PST Received: from inner-relay-4.eur.adobe.com (inner-relay-4b [10.128.4.237]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id qB5E41uN009270 for ; Wed, 5 Dec 2012 06:04:01 -0800 (PST) Received: from nacas02.corp.adobe.com (nacas02.corp.adobe.com [10.8.189.100]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id qB5E3wXM001525 for ; Wed, 5 Dec 2012 06:04:00 -0800 (PST) Received: from eurcas01.eur.adobe.com (10.128.4.27) by nacas02.corp.adobe.com (10.8.189.100) with Microsoft SMTP Server (TLS) id 8.3.279.1; Wed, 5 Dec 2012 06:03:58 -0800 Received: from eurmbx02.eur.adobe.com ([10.128.4.126]) by eurcas01.eur.adobe.com ([10.128.4.27]) with mapi; Wed, 5 Dec 2012 14:03:56 +0000 From: Tommaso Teofili To: "oak-dev@jackrabbit.apache.org" Date: Wed, 5 Dec 2012 14:03:55 +0000 Subject: question about IndexRow API Thread-Topic: question about IndexRow API Thread-Index: Ac3S8V2N6VWX4b8/TgO7b0MTCnTgXg== Message-ID: <0F2E14E3-EC7A-4DE0-AB5B-7C045FB84D7E@adobe.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi all, while trying to implement a custom IndexRow for the SolrQueryEngine i found= myself wondering how that should be done in a correct way. IndexRow API has two methods : - String getPath(); - PropertyStateValue getValue(String columnName); I wonder how a custom implementation would behave with respect to the getVa= lue() method, I mean that it should return a PropertyStateValue but, as far= as I could see so far, the PropertyStateValue constructor is protected (so= cannot be directly instantiated) and the utility methods in PropertyValues= , though calling new PropertyStateValue(...), return the PropertyValue inte= rface. So my question is: how could I create a PropertyStateValue instance without= doing an ugly cast from PropertyValue ? Thanks in advance and sorry if this sounds stupid :-) Tommaso=