Re: [orientdb] custom functions in console

2014-06-09 Thread Artem Orobets
Hi, Registration of function via *registerFunction* is different from its registration in OFunction. *registerFunction*() is rather for native java functions, while *OFunction* is for functions on dynamic languages (sql, JS). You might call *registerFunction* on client, so the server know nothing

Re: [orientdb] custom functions in console

2014-06-06 Thread effjkay
Thanks for the response, Artem. I have copy/pasted the example code to register the bigger() function, and run it. I don't get any errors calling it from a select statement in Java, but it is not recognized as a valid function name if I start up the console after. I am running v.1.7-SNAPSHOT (

Re: [orientdb] custom functions in console

2014-06-05 Thread Artem Orobets
Hi, The following step is a registration of function: OSQLEngine.getInstance().registerFunction(...) It is present in a an example, you may be missed that. Best regards, Artem Orobets * Orient Technologiesthe Company behind OrientDB* 2014-06-04 20:39 GMT+03:00 : > I am trying to write a cus

[orientdb] custom functions in console

2014-06-04 Thread effjkay
I am trying to write a custom function in Java that can be called from the console. I have seen https://github.com/orientechnologies/orientdb/wiki/SQL-Functions#custom-functions-in-java as a simple example, but there is no mention of how to register the function so that it can be called from t