We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a7c358 commit 8977001Copy full SHA for 8977001
src/main/java/org/sharrissf/sample/EhcacheSearchPlaying.java
@@ -108,6 +108,15 @@ public void runTests() throws IOException {
108
109
read();
110
111
+ System.out.println("Find the average age of all people between 30 and 40");
112
+
113
+ Query agesBetween = cache.createQuery();
114
+ agesBetween.add(age.between(30, 40));
115
+ agesBetween.includeAggregator(new Average(), age);
116
+ System.out.println("Average age between 30 and 40: " + agesBetween.execute().aggregateResult());
117
118
+ read();
119
120
System.out.println("Find the count of people from NJ");
121
122
Query newJerseyCountQuery = cache.createQuery().add(state.eq("NJ"));
0 commit comments