File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/sharrissf/sample Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ public void runTests() throws IOException {
149
149
Query averageAgeQuery = cache .createQuery ();
150
150
averageAgeQuery .includeAggregator (Aggregators .average (age ));
151
151
System .out .println ("Average age: "
152
- + averageAgeQuery .execute ().getAggregatorResults ());
152
+ + averageAgeQuery .execute ().all (). iterator (). next (). getAggregatorResults ());
153
153
154
154
read ();
155
155
@@ -160,7 +160,7 @@ public void runTests() throws IOException {
160
160
agesBetween .addCriteria (age .between (30 , 40 ));
161
161
agesBetween .includeAggregator (Aggregators .average (age ));
162
162
System .out .println ("Average age between 30 and 40: "
163
- + agesBetween .execute ().getAggregatorResults ());
163
+ + agesBetween .execute ().all (). iterator (). next (). getAggregatorResults ());
164
164
165
165
read ();
166
166
@@ -170,7 +170,7 @@ public void runTests() throws IOException {
170
170
state .eq ("NJ" ));
171
171
newJerseyCountQuery .includeAggregator (Aggregators .count ());
172
172
System .out .println ("Count of people from NJ: "
173
- + newJerseyCountQuery .execute ().getAggregatorResults ());
173
+ + newJerseyCountQuery .execute ().all (). iterator (). next (). getAggregatorResults ());
174
174
}
175
175
176
176
private void loadCache () {
You can’t perform that action at this time.
0 commit comments