org.eclipse.rdf4j.sail.federation.optimizers

## Class QueryModelPruner

- java.lang.Object
- - org.eclipse.rdf4j.sail.federation.optimizers.QueryModelPruner

- All Implemented Interfaces:
    QueryOptimizer

      public class QueryModelPruner
      extends Object
      implements QueryOptimizer

  A query optimizer that prunes query model trees by removing superfluous parts and/or by reducing complex parts with simpler parts.
  Author:
    Arjohn Kampman

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `protected class` | `QueryModelPruner.TreeSanitizer`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `QueryModelPruner()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `optimize(TupleExpr tupleExpr, Dataset dataset, BindingSet bindings)` Applies generally applicable optimizations: path expressions are sorted from more to less specific.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### QueryModelPruner

          public QueryModelPruner()

  - ### Method Detail

    - #### optimize

          public void optimize(TupleExpr tupleExpr,
                               Dataset dataset,
                               BindingSet bindings)

      Applies generally applicable optimizations: path expressions are sorted from more to less specific.
      Specified by:
        `optimize` in interface `QueryOptimizer`

Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.