public class PredicateDrivenCostEstimator extends CostEstimator
Modifier and Type | Field and Description |
---|---|
static int |
BIG_RESULT |
static int |
FAIL_RESULT |
static int |
FILTER_RESULT |
static int |
INFINITE_RESULT |
static int |
MEDIUM_RESULT |
static int |
SINGLE_RESULT |
static int |
SMALL_RESULT |
static int |
WHOLE_TM_RESULT |
Constructor and Description |
---|
PredicateDrivenCostEstimator() |
Modifier and Type | Method and Description |
---|---|
int |
computeCost(Set context,
AbstractClause clause,
Set literalvars,
String rulename)
INTERNAL: Computes the cost of evaluating the given clause
in the given context of variable bindings.
|
static int |
getComparisonPredicateCost(boolean[] boundparams) |
public static int INFINITE_RESULT
public static int WHOLE_TM_RESULT
public static int BIG_RESULT
public static int MEDIUM_RESULT
public static int SMALL_RESULT
public static int SINGLE_RESULT
public static int FILTER_RESULT
public static int FAIL_RESULT
public int computeCost(Set context, AbstractClause clause, Set literalvars, String rulename)
computeCost
in class CostEstimator
context
- 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).public static int getComparisonPredicateCost(boolean[] boundparams)