private static Plan makePlan(Query query, DatasetGraph dataset, Binding input, Context context) { if ( context == null ) context = new Context(ARQ.getContext()) ; if ( input == null ) input = BindingRoot.create() ; QueryEngineFactory f = findFactory(query, dataset, context) ; if ( f == null ) return null ; return f.create(query, dataset, input, context) ; } // ---------------- Internal routines
private static Plan makePlan(Query query, DatasetGraph dataset, Binding input, Context context) { if ( context == null ) context = new Context(ARQ.getContext()) ; if ( input == null ) input = BindingRoot.create() ; QueryEngineFactory f = findFactory(query, dataset, context) ; if ( f == null ) return null ; return f.create(query, dataset, input, context) ; } // ---------------- Internal routines
protected static QueryExecution make(Query query, Dataset dataset, Context context) { query.setResultVars() ; if ( context == null ) context = ARQ.getContext(); // .copy done in QueryExecutionBase -> Context.setupContext. DatasetGraph dsg = null ; if ( dataset != null ) dsg = dataset.asDatasetGraph() ; QueryEngineFactory f = findFactory(query, dsg, context); if ( f == null ) { Log.warn(QueryExecutionFactory.class, "Failed to find a QueryEngineFactory for query: "+query) ; return null ; } return new QueryExecutionBase(query, dataset, context, f) ; }
static private QueryExecution make(Query query, Dataset dataset, Context context) { query.setResultVars() ; if ( context == null ) context = ARQ.getContext().copy(); // .copy probably not necessary but safe. DatasetGraph dsg = null ; if ( dataset != null ) dsg = dataset.asDatasetGraph() ; QueryEngineFactory f = findFactory(query, dsg, context); if ( f == null ) { Log.warn(QueryExecutionFactory.class, "Failed to find a QueryEngineFactory for query: "+query) ; return null ; } return new QueryExecutionBase(query, dataset, context, f) ; }