public class AggregatorConstraint extends PatternCallBasedDeferred implements ITypeInfoProviderConstraint
PConstraint.CompareByMonotonousID
Modifier and Type | Field and Description |
---|---|
protected int |
aggregatedColumn |
protected PVariable |
resultVariable |
actualParametersTuple, query
pBody
Constructor and Description |
---|
AggregatorConstraint(BoundAggregator aggregator,
PBody pBody,
Tuple actualParametersTuple,
PQuery query,
PVariable resultVariable,
int aggregatedColumn) |
Modifier and Type | Method and Description |
---|---|
protected void |
doDoReplaceVariables(PVariable obsolete,
PVariable replacement) |
int |
getAggregatedColumn() |
BoundAggregator |
getAggregator() |
protected java.util.Set<PVariable> |
getCandidateQuantifiedVariables() |
java.util.Set<PVariable> |
getDeducedVariables()
The set of variables whose potential values can be enumerated (once all non-deduced variables have known values).
|
java.util.Map<java.util.Set<PVariable>,java.util.Set<PVariable>> |
getFunctionalDependencies(IQueryMetaContext context)
A (preferably minimal) cover of known functional dependencies between variables.
|
java.util.Set<TypeJudgement> |
getImpliedJudgements(IQueryMetaContext context)
Returns type information implied by this constraint.
|
PVariable |
getResultVariable() |
protected java.lang.String |
toStringRest() |
checkSanity, doReplaceVariable, getActualParametersTuple, getDeferringVariables, getReferredQuery
isReadyAt
delete, getAffectedVariables, getMonotonousID, getPSystem, replaceVariable, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
checkSanity, delete, getAffectedVariables, getMonotonousID, replaceVariable
protected PVariable resultVariable
protected int aggregatedColumn
public AggregatorConstraint(BoundAggregator aggregator, PBody pBody, Tuple actualParametersTuple, PQuery query, PVariable resultVariable, int aggregatedColumn)
public int getAggregatedColumn()
public BoundAggregator getAggregator()
public java.util.Set<PVariable> getDeducedVariables()
PConstraint
getDeducedVariables
in interface PConstraint
public java.util.Map<java.util.Set<PVariable>,java.util.Set<PVariable>> getFunctionalDependencies(IQueryMetaContext context)
PConstraint
getFunctionalDependencies
in interface PConstraint
getFunctionalDependencies
in class BasePConstraint
protected void doDoReplaceVariables(PVariable obsolete, PVariable replacement)
doDoReplaceVariables
in class PatternCallBasedDeferred
protected java.util.Set<PVariable> getCandidateQuantifiedVariables()
getCandidateQuantifiedVariables
in class PatternCallBasedDeferred
protected java.lang.String toStringRest()
toStringRest
in class BasePConstraint
public PVariable getResultVariable()
public java.util.Set<TypeJudgement> getImpliedJudgements(IQueryMetaContext context)
ITypeInfoProviderConstraint
getImpliedJudgements
in interface ITypeInfoProviderConstraint