QueryResults(Mappings r, ASTQuery aa) { map = r; ast = aa; select = new ArrayList<String>(); for (Node node : r.getSelect()) { select.add(node.getLabel()); } results = new VResult(); for (Mapping m : r) { results.add(new QueryResult(m, aa)); } }
public Enumeration<IResult> getResults() { final Iterator<IResult> it = results.iterator(); return new Enumeration<IResult>() { public boolean hasMoreElements() { return it.hasNext(); } public IResult nextElement() { return it.next(); } }; }
public IResult get(int i) { return results.get(i); }
public Iterator<IResult> iterator() { return results.iterator(); }
public int size() { return results.size(); }