AnzoGraph UDX Examples

AnzoGraph currently supports three different kinds of extensions. Each extension has similar but distinct requirements:

  • User-Defined Functions (UDF): A UDF extension maps or processes a single row of input values to return a single row of output values. For example, a developer can design a UDF extension to create an analytic function, such as those that concatenate values or convert integers to alternate currencies. For instructions on implementing a UDF, see Developing User-Defined Functions (UDF).
  • User-Defined Aggregates (UDA): A UDA extension maps or processes multiple rows of input values to return a single row of output values. For example, a developer can design a UDA extension, such as those that compute an arithmetic mean, or perform operations like SUM, STDDEV, or MAX. Unlike a UDF, which returns a distinct value each time it is applied, a UDA aggregates the collection of values to which it is applied into a single summary value. For instructions on implementing a UDA, see Developing User-Defined Aggregates (UDA).
  • User-Defined Services (UDS): A UDS extension maps or processes multiple rows of input values to return multiple rows of output values. For example, a developer can design and register a UDS extension that defines a SPARQL endpoint. For instructions on implementing a UDS, see Developing User-Defined Services (UDS).

More detailed information on creating each of these different types of UDXs and corresponding code examples are provided in the following sections: