Class UnificationConstraint

  • All Implemented Interfaces:
    Externalizable, Serializable, Cloneable, org.drools.core.rule.IndexableConstraint, org.drools.core.spi.AlphaNodeFieldConstraint, org.drools.core.spi.BetaNodeFieldConstraint, org.drools.core.spi.Constraint, org.drools.core.spi.RuleComponent

    public class UnificationConstraint
    extends org.drools.core.rule.MutableTypeConstraint
    implements org.drools.core.rule.IndexableConstraint
    See Also:
    Serialized Form
    • Constructor Detail

      • UnificationConstraint

        public UnificationConstraint​(org.drools.core.rule.Declaration indexingDeclaration)
      • UnificationConstraint

        public UnificationConstraint​(org.drools.core.rule.Declaration indexingDeclaration,
                                     ConstraintEvaluator evaluator)
    • Method Detail

      • isUnification

        public boolean isUnification()
        Specified by:
        isUnification in interface org.drools.core.rule.IndexableConstraint
      • unsetUnification

        public void unsetUnification()
        Specified by:
        unsetUnification in interface org.drools.core.rule.IndexableConstraint
      • isIndexable

        public boolean isIndexable​(short nodeType,
                                   org.drools.core.RuleBaseConfiguration config)
        Specified by:
        isIndexable in interface org.drools.core.rule.IndexableConstraint
      • getConstraintType

        public org.drools.core.util.index.IndexUtil.ConstraintType getConstraintType()
        Specified by:
        getConstraintType in interface org.drools.core.rule.IndexableConstraint
      • getField

        public org.drools.core.spi.FieldValue getField()
        Specified by:
        getField in interface org.drools.core.rule.IndexableConstraint
      • getFieldIndex

        public org.drools.core.util.AbstractHashTable.FieldIndex getFieldIndex()
        Specified by:
        getFieldIndex in interface org.drools.core.rule.IndexableConstraint
      • getFieldExtractor

        public org.drools.core.spi.InternalReadAccessor getFieldExtractor()
        Specified by:
        getFieldExtractor in interface org.drools.core.rule.IndexableConstraint
      • getIndexExtractor

        public org.drools.core.rule.Declaration getIndexExtractor()
        Specified by:
        getIndexExtractor in interface org.drools.core.rule.IndexableConstraint
      • getRequiredDeclarations

        public org.drools.core.rule.Declaration[] getRequiredDeclarations()
        Specified by:
        getRequiredDeclarations in interface org.drools.core.spi.Constraint
      • replaceDeclaration

        public void replaceDeclaration​(org.drools.core.rule.Declaration oldDecl,
                                       org.drools.core.rule.Declaration newDecl)
        Specified by:
        replaceDeclaration in interface org.drools.core.spi.Constraint
      • clone

        public org.drools.core.rule.MutableTypeConstraint clone()
        Specified by:
        clone in interface org.drools.core.spi.Constraint
        Specified by:
        clone in class org.drools.core.rule.MutableTypeConstraint
      • isTemporal

        public boolean isTemporal()
        Specified by:
        isTemporal in interface org.drools.core.spi.Constraint
      • isAllowed

        public boolean isAllowed​(org.drools.core.common.InternalFactHandle handle,
                                 org.drools.core.common.ReteEvaluator reteEvaluator)
        Specified by:
        isAllowed in interface org.drools.core.spi.AlphaNodeFieldConstraint
      • isAllowedCachedLeft

        public boolean isAllowedCachedLeft​(org.drools.core.rule.ContextEntry context,
                                           org.drools.core.common.InternalFactHandle handle)
        Specified by:
        isAllowedCachedLeft in interface org.drools.core.spi.BetaNodeFieldConstraint
      • isAllowedCachedRight

        public boolean isAllowedCachedRight​(org.drools.core.spi.Tuple tuple,
                                            org.drools.core.rule.ContextEntry context)
        Specified by:
        isAllowedCachedRight in interface org.drools.core.spi.BetaNodeFieldConstraint
      • createContextEntry

        public org.drools.core.rule.ContextEntry createContextEntry()
        Specified by:
        createContextEntry in interface org.drools.core.spi.BetaNodeFieldConstraint