This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 92e6197 Trivial edits
92e6197 is described below
commit 92e61973f1b9b3837b4f5559f17fe413a0bc1f92
Author: Daniel Sun <[email protected]>
AuthorDate: Sun Dec 13 15:07:42 2020 +0800
Trivial edits
---
.../groovy/ginq/provider/collection/runtime/QueryableCollection.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableCollection.java
b/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableCollection.java
index 191ff2c..17cd911 100644
---
a/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableCollection.java
+++
b/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableCollection.java
@@ -287,6 +287,7 @@ class QueryableCollection<T> implements Queryable<T>,
Serializable {
return from(stream);
}
+ // ------------------------------ BEGIN AGGREGATE FUNCTIONS
--------------------------------
@Override
public Long count() {
return agg(q -> q.stream().count());
@@ -349,6 +350,7 @@ class QueryableCollection<T> implements Queryable<T>,
Serializable {
public <U> U agg(Function<? super Queryable<? extends T>, ? extends U>
mapper) {
return mapper.apply(this);
}
+ // ------------------------------ END AGGREGATE FUNCTIONS
--------------------------------
private static <T, U> Queryable<Tuple2<T, U>> outerJoin(Queryable<?
extends T> queryable1, Queryable<? extends U> queryable2, BiPredicate<? super
T, ? super U> joiner) {
Stream<Tuple2<T, U>> stream =