Example #1
0
 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));
   }
 }
Example #2
0
  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();
      }
    };
  }
Example #3
0
  public IResult get(int i) {

    return results.get(i);
  }
Example #4
0
  public Iterator<IResult> iterator() {

    return results.iterator();
  }
Example #5
0
  public int size() {

    return results.size();
  }