jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommaso Teofili <teof...@adobe.com>
Subject Re: question about IndexRow API
Date Wed, 05 Dec 2012 14:59:35 GMT
Thanks Thomas :-)
Tommaso

On 05/dic/2012, at 15:39, Thomas Mueller wrote:

> Hi,
> 
> It looks like it should be a PropertyValue, and not a PropertyStateValue.
> I will fix it.
> 
> The easiest solution is to return null for now :-) because actually, the
> method is currently not used within the query engine. It is planned for
> pseudo-properties such as jcr:score (see the documentation).
> 
> 
> Regards,
> Thomas
> 
> 
> 
> On 12/5/12 3:03 PM, "Tommaso Teofili" <teofili@adobe.com> wrote:
> 
>> 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
>> getValue() 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 interface.
>> 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
> 


Mime
View raw message