1 6 7 package com.hp.hpl.jena.graph.query; 8 9 import java.util.ArrayList ; 10 11 import com.hp.hpl.jena.util.iterator.*; 12 import com.hp.hpl.jena.graph.*; 13 14 20 public class SimpleQueryPlan implements BindingQueryPlan 21 { 22 private Graph graph; 23 private Query query; 24 private Node [] variables; 25 26 public SimpleQueryPlan( Graph graph, Query query, Node [] variables ) 27 { 28 this.graph = graph; 29 this.query = query; 30 this.variables = variables; 31 } 32 33 public ExtendedIterator executeBindings() 34 { 36 return new SimpleQueryEngine( query.getTriples(), query.getSorter(), query.getConstraints() ) 37 .executeBindings( new ArrayList (), query.args().put( NamedTripleBunches.anon, graph ), variables ); 38 } 39 } 40 41 70 | Popular Tags |