Class HybridMatcherConstraintCostFunction
- java.lang.Object
-
- org.eclipse.viatra.query.runtime.localsearch.planner.cost.impl.StatisticsBasedConstraintCostFunction
-
- org.eclipse.viatra.query.runtime.localsearch.planner.cost.impl.IndexerBasedConstraintCostFunction
-
- org.eclipse.viatra.query.runtime.localsearch.planner.cost.impl.HybridMatcherConstraintCostFunction
-
- All Implemented Interfaces:
ICostFunction
@Deprecated public class HybridMatcherConstraintCostFunction extends IndexerBasedConstraintCostFunction
Deprecated.This cost function is intended to be used on hybrid configuration, with the strict restriction than any non-flattened positive pattern call is executed with Rete engine. This implementation provides the exact number of matches by invoking the result provider for the called pattern.
-
-
Field Summary
-
Fields inherited from class org.eclipse.viatra.query.runtime.localsearch.planner.cost.impl.StatisticsBasedConstraintCostFunction
DEFAULT_COST, EVAL_UNWIND_EXTENSION_FACTOR, INVERSE_NAVIGATION_PENALTY_DEFAULT, INVERSE_NAVIGATION_PENALTY_GENERIC, MAX_COST
-
-
Constructor Summary
Constructors Constructor Description HybridMatcherConstraintCostFunction()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected double
_calculateCost(PositivePatternCall patternCall, IConstraintEvaluationContext context)
Deprecated.-
Methods inherited from class org.eclipse.viatra.query.runtime.localsearch.planner.cost.impl.IndexerBasedConstraintCostFunction
projectionSize
-
Methods inherited from class org.eclipse.viatra.query.runtime.localsearch.planner.cost.impl.StatisticsBasedConstraintCostFunction
_calculateCost, _calculateCost, _calculateCost, _calculateCost, _calculateCost, _calculateCost, _calculateCost, _calculateCost, _calculateCost, _calculateCost, _calculateCost, _calculateCost, apply, bucketSize, calculateBinaryCost, calculateBinaryExtendCost, calculateCost, calculateUnaryConstraintCost, countTuples, navigatesThroughFunctionalDependency, navigatesThroughFunctionalDependency, navigatesThroughFunctionalDependencyInverse
-
-
-
-
Method Detail
-
_calculateCost
protected double _calculateCost(PositivePatternCall patternCall, IConstraintEvaluationContext context)
Deprecated.- Overrides:
_calculateCost
in classStatisticsBasedConstraintCostFunction
-
-