+ System.out.println("Read all records..");
+ // read all records
+ int i = 0;
+ for (Record r : s) {
+ assertNotNull(r);
+ System.out.println("Got "+i+" record of type "+r.getSyntax());
+ i++;
+ }
+ System.out.println("Try sorting them...");
+ s.sort("yaz", "1=4 >i 1=21 >s");
+ System.out.println("Try fetching them all at once...");
+ i = 0;
+ List<Record> all = s.getRecords(0, (int) s.getHitCount());
+ for (Record r : all) {
+ System.out.println("getRecords, rec '"+i+"'"+r.getSyntax());
+ i++;
+ }