return qr;
}
public long collectLFU(int limit) {
if (limit<=0) limit = pointers.size()/10;
QueryResults qr;
try {
qr = selectOrderBy("free=false", "frequency", "limit 1, " + limit);
@SuppressWarnings("unchecked")
List<Pointer> result = qr.getResults();
return free(result);
} catch (QueryParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (QueryExecutionException e) {