|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.query.impl.utils.CostEstimator
net.ontopia.topicmaps.query.impl.utils.SimpleCostEstimator
public class SimpleCostEstimator
| Constructor Summary | |
|---|---|
SimpleCostEstimator()
|
|
| Method Summary | |
|---|---|
int |
computeCost(java.util.Set context,
AbstractClause clause,
java.util.Set literalvars,
java.lang.String rulename)
INTERNAL: Computes the cost of evaluating the given clause in the given context of variable bindings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleCostEstimator()
| Method Detail |
|---|
public int computeCost(java.util.Set context,
AbstractClause clause,
java.util.Set literalvars,
java.lang.String rulename)
computeCost in class CostEstimatorcontext - A set of bound variables.clause - The clause whose cost we want to compute.literalvars - Contains the variables representing literals.
Only an issue in rules.rulename - The name of the current rule (so we can delay
recursive evaluation).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||