File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/java/org/sharrissf/sample Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 10
10
import net .sf .ehcache .config .SearchAttribute ;
11
11
import net .sf .ehcache .search .Attribute ;
12
12
import net .sf .ehcache .search .Query ;
13
+ import net .sf .ehcache .search .Result ;
13
14
import net .sf .ehcache .search .Results ;
14
15
import net .sf .ehcache .search .aggregator .Average ;
15
16
import net .sf .ehcache .search .aggregator .Count ;
@@ -86,6 +87,10 @@ public void runTests() throws IOException {
86
87
87
88
Results results = query .execute ();
88
89
System .out .println ("Took: " + (System .currentTimeMillis () - t ) + " Size: " + results .size ());
90
+ System .out .println ("----Results-----" );
91
+ for (Result result : results .all ()) {
92
+ System .out .println ("Got: Key[" + result .getKey () + "] Value class [" +result .getValue ().getClass ()+"] Value [" + result .getValue () + "]" );
93
+ }
89
94
90
95
read ();
91
96
You can’t perform that action at this time.
0 commit comments