Package org.eclipse.rdf4j.query.algebra.evaluation.impl

## Class DisjunctiveConstraintOptimizer

- java.lang.Object
- - org.eclipse.rdf4j.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

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `protected static class` | `DisjunctiveConstraintOptimizer.OrSameTermOptimizer` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `DisjunctiveConstraintOptimizer()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `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`