Class HybridMatcherConstraintCostFunction
java.lang.Object
tools.refinery.interpreter.localsearch.planner.cost.impl.StatisticsBasedConstraintCostFunction
tools.refinery.interpreter.localsearch.planner.cost.impl.IndexerBasedConstraintCostFunction
tools.refinery.interpreter.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 tools.refinery.interpreter.localsearch.planner.cost.impl.StatisticsBasedConstraintCostFunction
DEFAULT_COST, EVAL_UNWIND_EXTENSION_FACTOR, INVERSE_NAVIGATION_PENALTY_DEFAULT, INVERSE_NAVIGATION_PENALTY_GENERIC, MAX_COST
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected double
_calculateCost
(PositivePatternCall patternCall, IConstraintEvaluationContext context) Deprecated.Methods inherited from class tools.refinery.interpreter.localsearch.planner.cost.impl.IndexerBasedConstraintCostFunction
projectionSize
Methods inherited from class tools.refinery.interpreter.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
-
Constructor Details
-
HybridMatcherConstraintCostFunction
public HybridMatcherConstraintCostFunction()Deprecated.
-
-
Method Details
-
_calculateCost
protected double _calculateCost(PositivePatternCall patternCall, IConstraintEvaluationContext context) Deprecated.- Overrides:
_calculateCost
in classStatisticsBasedConstraintCostFunction
-
StatisticsBasedConstraintCostFunction
should useIQueryResultProvider.estimateCardinality(TupleMask, org.eclipse.viatra.query.runtime.matchers.util.Accuracy)