[jira] [Commented] (IGNITE-2210) Cannot query annotated methods when BinaryMarshaller is set.

2017-01-12 Thread Vladimir Ozerov (JIRA)

[ 
https://issues.apache.org/jira/browse/IGNITE-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15821117#comment-15821117
 ] 

Vladimir Ozerov commented on IGNITE-2210:
-

If we put annotation on a method, it should always provide the same value 
provided that object content is unchanged. No difference form fields.

> Cannot query annotated methods when BinaryMarshaller is set.
> 
>
> Key: IGNITE-2210
> URL: https://issues.apache.org/jira/browse/IGNITE-2210
> Project: Ignite
>  Issue Type: Task
>  Components: general, SQL
>Affects Versions: ignite-1.4
>Reporter: Vladimir Ozerov
> Fix For: 2.0
>
>
> Because it is impossible to call method from object in binary form. Several 
> solutions could be applied here:
> 1) Throw exception when method annotation is found and BinaryMarshaller is 
> set.
> 2) Or call this method and record it as a field to the object.
> Sample test: 
> IgniteCacheAbstractFieldsQuerySelfTest.testMethodAnnotationWithoutGet



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (IGNITE-2210) Cannot query annotated methods when BinaryMarshaller is set.

2016-01-13 Thread Denis Magda (JIRA)

[ 
https://issues.apache.org/jira/browse/IGNITE-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15096147#comment-15096147
 ] 

Denis Magda commented on IGNITE-2210:
-

I'm not sure that it makes sense to consider [2] since indexed methods are 
usually created for cases when we want to get a particular value at particular 
point of time and a value returned by the method at time A can differ from a 
value returned at time B.

As one more solution we can try to deserialize and object on the server side 
and execute a method. Yes it will require to have a class on the servers 
classpath. If we are not able to deserialize the value then we can throw 
exception from [1].

> Cannot query annotated methods when BinaryMarshaller is set.
> 
>
> Key: IGNITE-2210
> URL: https://issues.apache.org/jira/browse/IGNITE-2210
> Project: Ignite
>  Issue Type: Task
>  Components: general
>Affects Versions: ignite-1.4
>Reporter: Vladimir Ozerov
>Priority: Critical
> Fix For: 1.6
>
>
> Because it is impossible to call method from object in binary form. Several 
> solutions could be applied here:
> 1) Throw exception when method annotation is found and BinaryMarshaller is 
> set.
> 2) Or call this method and record it as a field to the object.
> Sample test: 
> IgniteCacheAbstractFieldsQuerySelfTest.testMethodAnnotationWithoutGet



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)