Class PApply
java.lang.Object
tools.refinery.interpreter.matchers.planning.operations.POperation
tools.refinery.interpreter.matchers.planning.operations.PApply
Represents a constraint application on a single parent SubPlan.
Either a "selection" filter operation according to a deferred PConstraint (or transform in case of eval/aggregate), or alternatively a shorthand for PJoin + a PEnumerate on the right input for an enumerable PConstraint.
WARNING: if there are coinciding variables in the variable tuple of the enumerable constraint, it is the responsibility of the compiler to check them for equality.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckConsistency(SubPlan subPlan) Checks whether this constraint can be properly applied at the given SubPlan.booleanSet<? extends PConstraint> Newly enforced constraintsinthashCode()intMethods inherited from class tools.refinery.interpreter.matchers.planning.operations.POperation
toString
-
Constructor Details
-
PApply
-
-
Method Details
-
getPConstraint
-
getShortName
- Specified by:
getShortNamein classPOperation
-
getDeltaConstraints
Description copied from class:POperationNewly enforced constraints- Specified by:
getDeltaConstraintsin classPOperation
-
numParentSubPlans
public int numParentSubPlans()- Specified by:
numParentSubPlansin classPOperation- Returns:
- the number of SubPlans that must be specified as parents
-
checkConsistency
Description copied from class:POperationChecks whether this constraint can be properly applied at the given SubPlan.- Overrides:
checkConsistencyin classPOperation
-
hashCode
public int hashCode() -
equals
-