Class UnificationConstraint

java.lang.Object
org.drools.base.rule.MutableTypeConstraint<org.drools.base.rule.ContextEntry>
org.drools.modelcompiler.constraints.UnificationConstraint
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, org.drools.base.rule.constraint.AlphaNodeFieldConstraint, org.drools.base.rule.constraint.BetaConstraint<org.drools.base.rule.ContextEntry>, org.drools.base.rule.constraint.Constraint, org.drools.base.rule.IndexableConstraint, org.drools.base.rule.RuleComponent

public class UnificationConstraint extends org.drools.base.rule.MutableTypeConstraint<org.drools.base.rule.ContextEntry> implements org.drools.base.rule.IndexableConstraint
See Also:
  • Constructor Details

    • UnificationConstraint

      public UnificationConstraint(org.drools.base.rule.Declaration leftIndexingDeclaration)
    • UnificationConstraint

      public UnificationConstraint(org.drools.base.rule.Declaration leftIndexingDeclaration, ConstraintEvaluator evaluator)
  • Method Details

    • isUnification

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

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

      public boolean isIndexable(int nodeType, KieBaseConfiguration config)
      Specified by:
      isIndexable in interface org.drools.base.rule.IndexableConstraint
    • getConstraintType

      public org.drools.base.util.index.ConstraintTypeOperator getConstraintType()
      Specified by:
      getConstraintType in interface org.drools.base.rule.IndexableConstraint
    • getField

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

      public org.drools.base.util.IndexedValueReader getFieldIndex()
      Specified by:
      getFieldIndex in interface org.drools.base.rule.IndexableConstraint
    • getFieldExtractor

      public org.drools.base.rule.accessor.ReadAccessor getFieldExtractor()
      Specified by:
      getFieldExtractor in interface org.drools.base.rule.IndexableConstraint
    • getRightIndexExtractor

      public org.drools.base.rule.accessor.TupleValueExtractor getRightIndexExtractor()
      Specified by:
      getRightIndexExtractor in interface org.drools.base.rule.IndexableConstraint
    • getLeftIndexExtractor

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

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

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

      public org.drools.base.rule.MutableTypeConstraint clone()
      Specified by:
      clone in interface org.drools.base.rule.constraint.Constraint
      Specified by:
      clone in class org.drools.base.rule.MutableTypeConstraint<org.drools.base.rule.ContextEntry>
    • isTemporal

      public boolean isTemporal()
      Specified by:
      isTemporal in interface org.drools.base.rule.constraint.Constraint
    • isAllowed

      public boolean isAllowed(FactHandle handle, org.drools.base.base.ValueResolver valueResolver)
      Specified by:
      isAllowed in interface org.drools.base.rule.constraint.AlphaNodeFieldConstraint
    • isAllowedCachedLeft

      public boolean isAllowedCachedLeft(org.drools.base.rule.ContextEntry context, FactHandle handle)
      Specified by:
      isAllowedCachedLeft in interface org.drools.base.rule.constraint.BetaConstraint<org.drools.base.rule.ContextEntry>
    • isAllowedCachedRight

      public boolean isAllowedCachedRight(org.drools.base.reteoo.BaseTuple tuple, org.drools.base.rule.ContextEntry context)
      Specified by:
      isAllowedCachedRight in interface org.drools.base.rule.constraint.BetaConstraint<org.drools.base.rule.ContextEntry>
    • createContext

      public org.drools.base.rule.ContextEntry createContext()
      Specified by:
      createContext in interface org.drools.base.rule.constraint.BetaConstraint<org.drools.base.rule.ContextEntry>