Class FlatCostFunction
java.lang.Object
tools.refinery.interpreter.localsearch.planner.cost.impl.StatisticsBasedConstraintCostFunction
tools.refinery.store.query.interpreter.internal.localsearch.FlatCostFunction
- All Implemented Interfaces:
ICostFunction
-
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected double
_calculateCost
(TypeConstraint constraint, IConstraintEvaluationContext input) projectionSize
(IConstraintEvaluationContext input, IInputKey supplierKey, TupleMask groupMask, Accuracy requiredAccuracy) 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
-
FlatCostFunction
public FlatCostFunction()
-
-
Method Details
-
projectionSize
public Optional<Long> projectionSize(IConstraintEvaluationContext input, IInputKey supplierKey, TupleMask groupMask, Accuracy requiredAccuracy) - Overrides:
projectionSize
in classStatisticsBasedConstraintCostFunction
-
_calculateCost
- Overrides:
_calculateCost
in classStatisticsBasedConstraintCostFunction
-