protected static class EvaluationStatistics.CardinalityCalculator extends AbstractQueryModelVisitor<RuntimeException>
Modifier and Type | Field and Description |
---|---|
protected double |
cardinality |
Modifier | Constructor and Description |
---|---|
protected |
CardinalityCalculator() |
Modifier and Type | Method and Description |
---|---|
protected int |
countConstantVars(Iterable<Var> vars) |
double |
getCardinality() |
protected double |
getCardinality(double varCardinality,
Collection<Var> vars) |
protected double |
getCardinality(double varCardinality,
Var var) |
protected double |
getCardinality(StatementPattern sp) |
protected double |
getContextCardinality(StatementPattern sp)
Override this if you are able to determine the cardinality based not only on the contextVar itself but also
the other vars (e.g.
|
protected double |
getContextCardinality(Var var) |
protected double |
getObjectCardinality(StatementPattern sp)
Override this if you are able to determine the cardinality based not only on the objectVar itself but also
the other vars (e.g.
|
protected double |
getObjectCardinality(Var var) |
protected double |
getPredicateCardinality(StatementPattern sp)
Override this if you are able to determine the cardinality based not only on the predicateVar itself but also
the other vars (e.g.
|
protected double |
getPredicateCardinality(Var var) |
protected double |
getSubjectCardinality(StatementPattern sp)
Override this if you are able to determine the cardinality based not only on the subjectVar itself but also
the other vars (e.g.
|
protected double |
getSubjectCardinality(Var var) |
void |
meet(ArbitraryLengthPath node) |
void |
meet(BindingSetAssignment node) |
void |
meet(EmptySet node) |
void |
meet(Join node) |
void |
meet(LeftJoin node) |
void |
meet(Service node) |
void |
meet(SingletonSet node) |
void |
meet(StatementPattern sp) |
void |
meet(ZeroLengthPath node) |
protected void |
meetBinaryTupleOperator(BinaryTupleOperator node)
Method called by all meet methods with a
BinaryTupleOperator node as argument. |
protected void |
meetExternalSet(ExternalSet node) |
protected void |
meetNode(QueryModelNode node)
Method called by all of the other meet methods that are not overridden in subclasses.
|
protected void |
meetUnaryTupleOperator(UnaryTupleOperator node)
Method called by all meet methods with a
UnaryTupleOperator node as argument. |
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, meetBinaryValueOperator, meetCompareSubQueryValueOperator, meetNAryValueOperator, meetOther, meetSubQueryValueOperator, meetUnaryValueOperator, meetUpdateExpr
public double getCardinality()
public void meet(EmptySet node)
meet
in interface QueryModelVisitor<RuntimeException>
meet
in class AbstractQueryModelVisitor<RuntimeException>
public void meet(SingletonSet node)
meet
in interface QueryModelVisitor<RuntimeException>
meet
in class AbstractQueryModelVisitor<RuntimeException>
public void meet(BindingSetAssignment node)
meet
in interface QueryModelVisitor<RuntimeException>
meet
in class AbstractQueryModelVisitor<RuntimeException>
public void meet(ZeroLengthPath node)
meet
in interface QueryModelVisitor<RuntimeException>
meet
in class AbstractQueryModelVisitor<RuntimeException>
public void meet(ArbitraryLengthPath node)
meet
in interface QueryModelVisitor<RuntimeException>
meet
in class AbstractQueryModelVisitor<RuntimeException>
public void meet(Service node)
meet
in interface QueryModelVisitor<RuntimeException>
meet
in class AbstractQueryModelVisitor<RuntimeException>
public void meet(StatementPattern sp)
meet
in interface QueryModelVisitor<RuntimeException>
meet
in class AbstractQueryModelVisitor<RuntimeException>
protected double getCardinality(StatementPattern sp)
protected double getSubjectCardinality(StatementPattern sp)
protected double getSubjectCardinality(Var var)
protected double getPredicateCardinality(StatementPattern sp)
protected double getPredicateCardinality(Var var)
protected double getObjectCardinality(StatementPattern sp)
protected double getObjectCardinality(Var var)
protected double getContextCardinality(StatementPattern sp)
protected double getContextCardinality(Var var)
protected double getCardinality(double varCardinality, Var var)
protected double getCardinality(double varCardinality, Collection<Var> vars)
public void meet(Join node)
meet
in interface QueryModelVisitor<RuntimeException>
meet
in class AbstractQueryModelVisitor<RuntimeException>
public void meet(LeftJoin node)
meet
in interface QueryModelVisitor<RuntimeException>
meet
in class AbstractQueryModelVisitor<RuntimeException>
protected void meetBinaryTupleOperator(BinaryTupleOperator node)
AbstractQueryModelVisitor
BinaryTupleOperator
node as argument. Forwards the call
to AbstractQueryModelVisitor.meetNode(org.eclipse.rdf4j.query.algebra.QueryModelNode)
by default.meetBinaryTupleOperator
in class AbstractQueryModelVisitor<RuntimeException>
node
- The node that is being visited.protected void meetUnaryTupleOperator(UnaryTupleOperator node)
AbstractQueryModelVisitor
UnaryTupleOperator
node as argument. Forwards the call
to AbstractQueryModelVisitor.meetNode(org.eclipse.rdf4j.query.algebra.QueryModelNode)
by default.meetUnaryTupleOperator
in class AbstractQueryModelVisitor<RuntimeException>
node
- The node that is being visited.protected void meetNode(QueryModelNode node)
AbstractQueryModelVisitor
meetNode
in class AbstractQueryModelVisitor<RuntimeException>
node
- The node that is being visited.protected void meetExternalSet(ExternalSet node)
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.