You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/extending-neo4j/aggregation-functions.adoc
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,12 @@ An aggregator class contains one method annotated with `@UserAggregationUpdate`
32
32
The method annotated with `@UserAggregationUpdate` will be called multiple times and enables the class to aggregate data.
33
33
When the aggregation is done, the method annotated with `@UserAggregationResult` will be called once and the result of the aggregation will be returned.
34
34
35
+
Particular things to note:
36
+
37
+
* All functions are annotated with `@UserAggregationFunction`.
38
+
* The aggregation function name must be namespaced and is not allowed in reserved namespaces.
39
+
* If a user-defined aggregation function is registered with the same name as a built-in function in a deprecated namespace, the built-in function is shadowed.
40
+
35
41
See xref:extending-neo4j/values-and-types.adoc[] for details on values and types.
36
42
37
43
For more details, see the Neo4j Javadocs for link:{org-neo4j-procedure-UserAggregationFunction}[`org.neo4j.procedure.UserAggregationFunction`^].
@@ -132,3 +138,53 @@ public class LongestStringTest
0 commit comments