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

## Class RegexAsStringFunctionOptimizer

- java.lang.Object
- - org.eclipse.rdf4j.query.algebra.evaluation.impl.RegexAsStringFunctionOptimizer

- All Implemented Interfaces:
    `QueryOptimizer`

      public class RegexAsStringFunctionOptimizer
      extends Object
      implements QueryOptimizer

  A query optimizer that replaces REGEX with `FunctionCall`s that are equivalent operators
  Author:
    Jerven Bolleman

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `protected class` | `RegexAsStringFunctionOptimizer.RegexAsStringFunctionVisitor` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `RegexAsStringFunctionOptimizer​(ValueFactory vf)` |

  - ### Method Summary

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

    - #### RegexAsStringFunctionOptimizer

          public RegexAsStringFunctionOptimizer​(ValueFactory vf)

  - ### 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`