Class AggregatorConstraint
java.lang.Object
tools.refinery.interpreter.matchers.psystem.BasePConstraint
tools.refinery.interpreter.matchers.psystem.DeferredPConstraint
tools.refinery.interpreter.matchers.psystem.VariableDeferredPConstraint
tools.refinery.interpreter.matchers.psystem.basicdeferred.PatternCallBasedDeferred
tools.refinery.interpreter.matchers.psystem.basicdeferred.AggregatorConstraint
- All Implemented Interfaces:
IMultiQueryReference
,IQueryReference
,ITypeInfoProviderConstraint
,PConstraint
,PTraceable
public class AggregatorConstraint
extends PatternCallBasedDeferred
implements ITypeInfoProviderConstraint
The PSystem representation of an aggregation.
- Since:
- 1.4
-
Field Summary
FieldsFields inherited from class tools.refinery.interpreter.matchers.psystem.basicdeferred.PatternCallBasedDeferred
actualParametersTuple, query
Fields inherited from class tools.refinery.interpreter.matchers.psystem.BasePConstraint
pBody
Fields inherited from interface tools.refinery.interpreter.matchers.psystem.PConstraint
COMPARE_BY_MONOTONOUS_ID
-
Constructor Summary
ConstructorsConstructorDescriptionAggregatorConstraint
(BoundAggregator aggregator, PBody pBody, Tuple actualParametersTuple, PQuery query, PVariable resultVariable, int aggregatedColumn) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doDoReplaceVariables
(PVariable obsolete, PVariable replacement) int
The set of variables whose potential values can be enumerated (once all non-deduced variables have known values).A (preferably minimal) cover of known functional dependencies between variables.getImpliedJudgements
(IQueryMetaContext context) Returns type information implied by this constraint.protected String
Methods inherited from class tools.refinery.interpreter.matchers.psystem.basicdeferred.PatternCallBasedDeferred
checkSanity, doReplaceVariable, getActualParametersTuple, getDeferringVariables, getReferredQuery
Methods inherited from class tools.refinery.interpreter.matchers.psystem.VariableDeferredPConstraint
isReadyAt
Methods inherited from class tools.refinery.interpreter.matchers.psystem.BasePConstraint
delete, getAffectedVariables, getBody, getMonotonousID, getPSystem, replaceVariable, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface tools.refinery.interpreter.matchers.psystem.IQueryReference
getReferredQueries
Methods inherited from interface tools.refinery.interpreter.matchers.psystem.PConstraint
checkSanity, delete, getAffectedVariables, getBody, getMonotonousID, replaceVariable
-
Field Details
-
resultVariable
-
aggregatedColumn
protected int aggregatedColumn
-
-
Constructor Details
-
AggregatorConstraint
public AggregatorConstraint(BoundAggregator aggregator, PBody pBody, Tuple actualParametersTuple, PQuery query, PVariable resultVariable, int aggregatedColumn)
-
-
Method Details
-
getAggregatedColumn
public int getAggregatedColumn() -
getAggregator
-
getDeducedVariables
Description copied from interface:PConstraint
The set of variables whose potential values can be enumerated (once all non-deduced variables have known values).- Specified by:
getDeducedVariables
in interfacePConstraint
-
getFunctionalDependencies
Description copied from interface:PConstraint
A (preferably minimal) cover of known functional dependencies between variables.- Specified by:
getFunctionalDependencies
in interfacePConstraint
- Overrides:
getFunctionalDependencies
in classBasePConstraint
- Returns:
- non-trivial functional dependencies in the form of {variables} --> {variables}, where dependencies with the same lhs are unified.
-
doDoReplaceVariables
- Specified by:
doDoReplaceVariables
in classPatternCallBasedDeferred
-
getCandidateQuantifiedVariables
- Specified by:
getCandidateQuantifiedVariables
in classPatternCallBasedDeferred
-
toStringRest
- Specified by:
toStringRest
in classBasePConstraint
-
getResultVariable
-
getImpliedJudgements
Description copied from interface:ITypeInfoProviderConstraint
Returns type information implied by this constraint.- Specified by:
getImpliedJudgements
in interfaceITypeInfoProviderConstraint
-