Hi Adam, The short answer is that you can't - we haven't written an external API for that yet. The longer answer is that you can kind of twist the aggregate UDF API to do that by just having blank map and reduce methods - but obviously you'll pay the cost of visiting the D-nodes each time they get called.
John On 12/06/14 10:00, Retter, Adam (RBI-UK) wrote: > Hi there, > > I would like to create some extension functions in C++. I believe that > you call these UDF (User Defined Functions), however I can only seem to > find documentation for creating Aggregate UDF functions. In this > instance I am not interested in the content of the database, indexes or > map-reduce, rather I want to create a set of XQuery functions that > bridge to an external system, this bridge needs to use a proprietary > communications protocol. > > Can someone please point me to the documentation on how to create > non-Agrregate UDF functions? > > Cheers Adam. -- John Snelson, Lead Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
