public QueryPlan getExecutionPlan(final Query query) { if (OpenlletOptions.SAMPLING_RATIO == 0) return new NoReorderingQueryPlan(query); if (query.getAtoms().size() > OpenlletOptions.STATIC_REORDERING_LIMIT) { _logger.fine("Using incremental query plan."); return new IncrementalQueryPlan(query); } else { _logger.fine("Using full query plan."); return new CostBasedQueryPlanNew(query); } } }
public IncrementalQueryPlan(final Query query) { super(query); QuerySizeEstimator.computeSizeEstimate(query); _explored = new Stack<>(); _atoms = query.getAtoms(); _size = _atoms.size(); _cost = new QueryCost(query.getKB()); reset(); }
public IncrementalQueryPlan(final Query query) { super(query); QuerySizeEstimator.computeSizeEstimate(query); _explored = new Stack<>(); _atoms = query.getAtoms(); _size = _atoms.size(); _cost = new QueryCost(query.getKB()); reset(); }
public IncrementalQueryPlan(final Query query) { super(query); QuerySizeEstimator.computeSizeEstimate(query); _explored = new Stack<>(); _atoms = query.getAtoms(); _size = _atoms.size(); _cost = new QueryCost(query.getKB()); reset(); }
public QueryPlan getExecutionPlan(final Query query) { if (OpenlletOptions.SAMPLING_RATIO == 0) return new NoReorderingQueryPlan(query); if (query.getAtoms().size() > OpenlletOptions.STATIC_REORDERING_LIMIT) { _logger.fine("Using incremental query plan."); return new IncrementalQueryPlan(query); } else { _logger.fine("Using full query plan."); return new CostBasedQueryPlanNew(query); } } }
public QueryPlan getExecutionPlan(final Query query) { if (OpenlletOptions.SAMPLING_RATIO == 0) return new NoReorderingQueryPlan(query); if (query.getAtoms().size() > OpenlletOptions.STATIC_REORDERING_LIMIT) { _logger.fine("Using incremental query plan."); return new IncrementalQueryPlan(query); } else { _logger.fine("Using full query plan."); return new CostBasedQueryPlanNew(query); } } }