Class QueryJoinOptimizer.JoinVisitor
java.lang.Object
org.eclipse.rdf4j.query.algebra.helpers.AbstractQueryModelVisitor<RuntimeException>
org.eclipse.rdf4j.query.algebra.evaluation.impl.QueryJoinOptimizer.JoinVisitor
- All Implemented Interfaces:
QueryModelVisitor<RuntimeException>
- Enclosing class:
QueryJoinOptimizer
@Deprecated
protected class QueryJoinOptimizer.JoinVisitor
extends AbstractQueryModelVisitor<RuntimeException>
Deprecated.
This class is protected for historic reasons only, and will be made private in a future major
release.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetConstantVars
(Iterable<Var> vars) Deprecated.getExtensions
(List<TupleExpr> expressions) Deprecated.protected int
Deprecated.getJoinArgs
(TupleExpr tupleExpr, L joinArgs) Deprecated.getStatementPatternVars
(TupleExpr tupleExpr) Deprecated.getSubSelects
(List<TupleExpr> expressions) Deprecated.protected double
getTupleExprCardinality
(TupleExpr tupleExpr, Map<TupleExpr, Double> cardinalityMap, Map<TupleExpr, List<Var>> varsMap, Map<Var, Integer> varFreqMap, Set<String> boundVars) Deprecated.protected double
getTupleExprCost
(TupleExpr tupleExpr, Map<TupleExpr, Double> cardinalityMap, Map<TupleExpr, List<Var>> varsMap, Map<Var, Integer> varFreqMap, Set<String> boundVars) Deprecated.getUnboundVars
(Iterable<Var> vars) Deprecated.getVarFreqMap
(List<Var> varList, M varFreqMap) Deprecated.void
Deprecated.void
Deprecated.void
meet
(StatementPattern node) Deprecated.reorderSubselects
(List<TupleExpr> subselects) Deprecated.Determines an optimal ordering of subselect join arguments, based on variable bindings.protected TupleExpr
selectNextTupleExpr
(List<TupleExpr> expressions, Map<TupleExpr, Double> cardinalityMap, Map<TupleExpr, List<Var>> varsMap, Map<Var, Integer> varFreqMap, Set<String> boundVars) Deprecated.Selects from a list of tuple expressions the next tuple expression that should be evaluated.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, meet, meet, meet, meet, meet, meet, meetBinaryTupleOperator, meetBinaryValueOperator, meetCompareSubQueryValueOperator, meetNAryValueOperator, meetNode, meetOther, meetSubQueryValueOperator, meetUnaryTupleOperator, meetUnaryValueOperator, meetUpdateExpr
-
Constructor Details
-
JoinVisitor
protected JoinVisitor()Deprecated.
-
-
Method Details
-
meet
Deprecated.- Specified by:
meet
in interfaceQueryModelVisitor<RuntimeException>
- Overrides:
meet
in classAbstractQueryModelVisitor<RuntimeException>
-
meet
Deprecated.- Specified by:
meet
in interfaceQueryModelVisitor<RuntimeException>
- Overrides:
meet
in classAbstractQueryModelVisitor<RuntimeException>
- Throws:
RuntimeException
-
meet
Deprecated.- Specified by:
meet
in interfaceQueryModelVisitor<RuntimeException>
- Overrides:
meet
in classAbstractQueryModelVisitor<RuntimeException>
-
getJoinArgs
Deprecated. -
getStatementPatternVars
Deprecated. -
getVarFreqMap
Deprecated. -
getExtensions
Deprecated. -
getSubSelects
Deprecated. -
reorderSubselects
Deprecated.Determines an optimal ordering of subselect join arguments, based on variable bindings. An ordering is considered optimal if for each consecutive element it holds that first of all its shared variables with all previous elements is maximized, and second, the union of all its variables with all previous elements is maximized.Example: reordering
[f] [a b c] [e f] [a d] [b e]
should result in:
[a b c] [a d] [b e] [e f] [f]
- Parameters:
subselects
- the original ordering of expressions- Returns:
- the optimized ordering of expressions
-
selectNextTupleExpr
protected TupleExpr selectNextTupleExpr(List<TupleExpr> expressions, Map<TupleExpr, Double> cardinalityMap, Map<TupleExpr, List<Var>> varsMap, Map<Var, Integer> varFreqMap, Set<String> boundVars) Deprecated.Selects from a list of tuple expressions the next tuple expression that should be evaluated. This method selects the tuple expression with highest number of bound variables, preferring variables that have been bound in other tuple expressions over variables with a fixed value. -
getTupleExprCardinality
@Deprecated protected double getTupleExprCardinality(TupleExpr tupleExpr, Map<TupleExpr, Double> cardinalityMap, Map<TupleExpr, List<Var>> varsMap, Map<Var, Integer> varFreqMap, Set<String> boundVars) Deprecated. -
getTupleExprCost
protected double getTupleExprCost(TupleExpr tupleExpr, Map<TupleExpr, Double> cardinalityMap, Map<TupleExpr, List<Var>> varsMap, Map<Var, Integer> varFreqMap, Set<String> boundVars) Deprecated. -
getConstantVars
Deprecated. -
getUnboundVars
Deprecated. -
getForeignVarFreq
Deprecated.
-