217218219220221222223224225226227
HFilter q = HFilter.make(query); String actual = ""; for (int c = 'a'; c <= 'c'; ++c) { String id = "" + (char) c; if (q.include(db.find(id), db)) actual += actual.length() > 0 ? "," + id : id; } verifyEq(expected, actual); }
128129130131132133134135136137138
protected HGrid onReadAll(String filter, int limit) { HFilter f = HFilter.make(filter); List<HDict> acc = new ArrayList<HDict>(); for (Iterator<HDict> it = iterator(); it.hasNext();) { HDict rec = it.next(); if (f.include(rec, filterPather)) { acc.add(rec); if (acc.size() >= limit) break; } }