Class QueryInputWrapper

java.lang.Object
fr.inria.rules.integraal.component_builder.evaluators.query_evaluation.auxiliary.QueryInputWrapper

public class QueryInputWrapper extends Object
Groups query-evaluation inputs that share the same fact base and evaluator.
  • Constructor Details

    • QueryInputWrapper

      public QueryInputWrapper(Collection<Query> queries, FactBase factBase, QueryEvaluator<Query, ? super FactBase> queryEvaluator, boolean constantsOnly, boolean count)
      Creates a wrapper around the supplied query-evaluation inputs.
      Parameters:
      queries - the queries to evaluate
      factBase - the fact base used for evaluation
      queryEvaluator - the evaluator to use, or null for the default one
      constantsOnly - whether answers must bind variables to constants only
      count - whether only answer counts should be computed
  • Method Details

    • createQueryInputs

      public List<QueryEvaluationInput> createQueryInputs()
      Creates one query-evaluation input per wrapped query.
      Returns:
      the list of query-evaluation inputs derived from this wrapper