affinityKey method is not called in the following equivalent example:

/select * from "mycache".mycache c
where _key = affinityKey('java.lang.String', 'key20')

public class MySql {
        @QuerySqlFunction
        public static org.apache.ignite.cache.affinity.AffinityKey<?>
affinityKey(String keyClz, Object... ctorArgs) throws NoSuchMethodException,
SecurityException, ClassNotFoundException, InstantiationException,
IllegalAccessException, IllegalArgumentException, InvocationTargetException
{
                Class<?> c = Class.forName(keyClz);
                Class<?>[] argTypes = new Class[ctorArgs.length];
                for (int i=0; i < ctorArgs.length; i++) {
                        argTypes[i] = ctorArgs[i].getClass();
                }
                Constructor<?> ctor = c.getConstructor(argTypes);
                return new
org.apache.ignite.cache.affinity.AffinityKey(ctor.newInstance(ctorArgs));
        }
}/





--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/QuerySqlFunction-methods-with-variable-arguments-do-not-seem-to-work-tp6524.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to