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

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

public class DisjunctiveConstraintOptimizer
extends Object
implements QueryOptimizer

A query optimizer that optimize disjunctive constraints on tuple expressions. Currently, this optimizer unions a clone of the underlying tuple expression with the original expression for each SameTerm operator, moving the SameTerm to the cloned tuple expression.

Author:
Arjohn Kampman, James Leigh

Nested Class Summary
protected static class DisjunctiveConstraintOptimizer.OrSameTermOptimizer
           
 
Constructor Summary
DisjunctiveConstraintOptimizer()
           
 
Method Summary
 void optimize(TupleExpr tupleExpr, Dataset dataset, BindingSet bindings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisjunctiveConstraintOptimizer

public DisjunctiveConstraintOptimizer()
Method Detail

optimize

public void optimize(TupleExpr tupleExpr,
                     Dataset dataset,
                     BindingSet bindings)
Specified by:
optimize in interface QueryOptimizer


Copyright © 2001-2009 Aduna. All Rights Reserved.