Support aggregation operators $first and $last via expression method reference.

This commit registers the first(...) and last(...) methods for transformation via SpEL.
Also update reference and java documentation and add issue reference to tests.

Original Pull Request: #3866
This commit is contained in:
Christoph Strobl
2022-01-24 09:22:10 +01:00
parent a2243536b2
commit bcbefa9264
5 changed files with 34 additions and 16 deletions

View File

@@ -94,7 +94,7 @@ At the time of this writing, we provide support for the following Aggregation Op
| `eq` (+++*+++ via `is`), `gt`, `gte`, `lt`, `lte`, `ne`
| Array Aggregation Operators
| `arrayElementAt`, `arrayToObject`, `concatArrays`, `filter`, `in`, `indexOfArray`, `isArray`, `range`, `reverseArray`, `reduce`, `size`, `slice`, `zip`
| `arrayElementAt`, `arrayToObject`, `concatArrays`, `filter`, `first`, `in`, `indexOfArray`, `isArray`, `last`, range`, `reverseArray`, `reduce`, `size`, `slice`, `zip`
| Literal Operators
| `literal`