org.openrdf.query.algebra.evaluation.impl
Class CompareOptimizer

java.lang.Object
  extended by org.openrdf.query.algebra.evaluation.impl.CompareOptimizer
All Implemented Interfaces:
QueryOptimizer

public class CompareOptimizer
extends Object
implements QueryOptimizer

A query optimizer that replaces Compare operators with SameTerms, if possible.

Author:
Arjohn Kampman

Nested Class Summary
protected  class CompareOptimizer.CompareVisitor
           
 
Constructor Summary
CompareOptimizer()
           
 
Method Summary
 void optimize(TupleExpr tupleExpr, Dataset dataset, BindingSet bindings)
          Applies generally applicable optimizations to the supplied query: variable assignments are inlined.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompareOptimizer

public CompareOptimizer()
Method Detail

optimize

public void optimize(TupleExpr tupleExpr,
                     Dataset dataset,
                     BindingSet bindings)
Applies generally applicable optimizations to the supplied query: variable assignments are inlined.

Specified by:
optimize in interface QueryOptimizer
Parameters:
tupleExpr -
Throws:
QueryEvaluationException


Copyright © 2001-2008 Aduna. All Rights Reserved.