Class UnionOptimizer
- java.lang.Object
-
- org.eclipse.rdf4j.query.algebra.helpers.AbstractSimpleQueryModelVisitor<OptimizationException>
-
- org.eclipse.rdf4j.federated.optimizer.UnionOptimizer
-
- All Implemented Interfaces:
FedXOptimizer
,QueryModelVisitor<OptimizationException>
public class UnionOptimizer extends AbstractSimpleQueryModelVisitor<OptimizationException> implements FedXOptimizer
Optimizer to flatten the UNION operations.- Author:
- Andreas Schwarte
-
-
Constructor Summary
Constructors Constructor Description UnionOptimizer(QueryInfo queryInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
handleUnionArgs(Union union, List<TupleExpr> args)
Add the union arguments to the args list, includes a recursion step for nested unions.void
meet(Union union)
void
optimize(TupleExpr tupleExpr)
Optimize the provided tuple expression-
Methods inherited from class org.eclipse.rdf4j.query.algebra.helpers.AbstractSimpleQueryModelVisitor
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, meet, meet, meet, meet, meet, meet, meet, meet, meetBinaryTupleOperator, meetBinaryValueOperator, meetCompareSubQueryValueOperator, meetNAryValueOperator, meetOther, meetSubQueryValueOperator, meetUnaryTupleOperator, meetUnaryValueOperator, meetUnsupported, meetUpdateExpr
-
-
-
-
Field Detail
-
queryInfo
protected final QueryInfo queryInfo
-
-
Constructor Detail
-
UnionOptimizer
public UnionOptimizer(QueryInfo queryInfo)
-
-
Method Detail
-
optimize
public void optimize(TupleExpr tupleExpr)
Description copied from interface:FedXOptimizer
Optimize the provided tuple expression- Specified by:
optimize
in interfaceFedXOptimizer
-
meet
public void meet(Union union)
- Specified by:
meet
in interfaceQueryModelVisitor<OptimizationException>
- Overrides:
meet
in classAbstractSimpleQueryModelVisitor<OptimizationException>
-
-