Class QueryOptimizer


  • public class QueryOptimizer
    extends Object
    INTERNAL: An optimizer class that knows how to rewrite queries to equivalent, but more efficient queries. Used by the different query processor implementations to improve performance. Note that the only optimizations this class should perform are those which are independent of the tolog implementation used and which only rely on the semantics of tolog.

    The only optimizations performed at the moment are:

    • Reordering of query clauses for better performance by limiting the number of intermediate results.
    • Inlining rules which are simple aliases for a single predicate.