Class QueryModelNormalizer
java.lang.Object
org.eclipse.rdf4j.query.algebra.helpers.AbstractQueryModelVisitor<RuntimeException>
org.eclipse.rdf4j.query.algebra.evaluation.impl.QueryModelNormalizer
- All Implemented Interfaces:
QueryOptimizer
,QueryModelVisitor<RuntimeException>
public class QueryModelNormalizer
extends AbstractQueryModelVisitor<RuntimeException>
implements QueryOptimizer
A query optimizer that (partially) normalizes query models to a canonical form. Note: this implementation does not
yet cover all query node types.
- Author:
- Arjohn Kampman
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
meet
(Difference difference) void
void
meet
(Intersection intersection) void
void
void
void
protected void
Method called by all meet methods with aUnaryTupleOperator
node as argument.void
optimize
(TupleExpr tupleExpr, Dataset dataset, BindingSet bindings) Methods inherited from class org.eclipse.rdf4j.query.algebra.helpers.AbstractQueryModelVisitor
meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meetBinaryTupleOperator, meetBinaryValueOperator, meetCompareSubQueryValueOperator, meetNAryValueOperator, meetNode, meetOther, meetSubQueryValueOperator, meetUnaryValueOperator, meetUpdateExpr
-
Constructor Details
-
QueryModelNormalizer
public QueryModelNormalizer()
-
-
Method Details
-
optimize
- Specified by:
optimize
in interfaceQueryOptimizer
-
meet
- Specified by:
meet
in interfaceQueryModelVisitor<RuntimeException>
- Overrides:
meet
in classAbstractQueryModelVisitor<RuntimeException>
-
meet
- Specified by:
meet
in interfaceQueryModelVisitor<RuntimeException>
- Overrides:
meet
in classAbstractQueryModelVisitor<RuntimeException>
-
meet
- Specified by:
meet
in interfaceQueryModelVisitor<RuntimeException>
- Overrides:
meet
in classAbstractQueryModelVisitor<RuntimeException>
-
meet
- Specified by:
meet
in interfaceQueryModelVisitor<RuntimeException>
- Overrides:
meet
in classAbstractQueryModelVisitor<RuntimeException>
-
meet
- Specified by:
meet
in interfaceQueryModelVisitor<RuntimeException>
- Overrides:
meet
in classAbstractQueryModelVisitor<RuntimeException>
-
meetUnaryTupleOperator
Description copied from class:AbstractQueryModelVisitor
Method called by all meet methods with aUnaryTupleOperator
node as argument. Forwards the call toAbstractQueryModelVisitor.meetNode(org.eclipse.rdf4j.query.algebra.QueryModelNode)
by default.- Overrides:
meetUnaryTupleOperator
in classAbstractQueryModelVisitor<RuntimeException>
- Parameters:
node
- The node that is being visited.
-
meet
- Specified by:
meet
in interfaceQueryModelVisitor<RuntimeException>
- Overrides:
meet
in classAbstractQueryModelVisitor<RuntimeException>
-
meet
- Specified by:
meet
in interfaceQueryModelVisitor<RuntimeException>
- Overrides:
meet
in classAbstractQueryModelVisitor<RuntimeException>
-
meet
- Specified by:
meet
in interfaceQueryModelVisitor<RuntimeException>
- Overrides:
meet
in classAbstractQueryModelVisitor<RuntimeException>
-