Package org.drools.core.common
Class MultipleBetaConstraint
- java.lang.Object
-
- org.drools.core.common.MultipleBetaConstraint
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,BetaConstraints
- Direct Known Subclasses:
DoubleBetaConstraints,QuadroupleBetaConstraints,TripleBetaConstraints
public abstract class MultipleBetaConstraint extends java.lang.Object implements BetaConstraints
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BetaNodeFieldConstraint[]constraintsprotected booleandisableIndexingprotected boolean[]indexedprotected org.kie.internal.conf.IndexPrecedenceOptionindexPrecedenceOption
-
Constructor Summary
Constructors Modifier Constructor Description MultipleBetaConstraint()MultipleBetaConstraint(BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration conf, boolean disableIndexing)protectedMultipleBetaConstraint(BetaNodeFieldConstraint[] constraints, org.kie.internal.conf.IndexPrecedenceOption indexPrecedenceOption, boolean disableIndexing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BetaMemorycreateBetaMemory(RuleBaseConfiguration config, short nodeType)ContextEntry[]createContext()BetaNodeFieldConstraint[]getConstraints()intgetIndexCount()voidinit(BuildContext context, short betaNodeType)voidinitIndexes(int depth, short betaNodeType, RuleBaseConfiguration config)booleanisEmpty()booleanisIndexed()booleanisLeftUpdateOptimizationAllowed()voidreadExternal(java.io.ObjectInput in)voidregisterEvaluationContext(BuildContext buildContext)voidwriteExternal(java.io.ObjectOutput out)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.core.common.BetaConstraints
cloneIfInUse, getListenedPropertyMask, getOriginalConstraint, isAllowedCachedLeft, isAllowedCachedRight, resetFactHandle, resetTuple, updateFromFactHandle, updateFromTuple
-
-
-
-
Field Detail
-
constraints
protected BetaNodeFieldConstraint[] constraints
-
indexed
protected boolean[] indexed
-
indexPrecedenceOption
protected org.kie.internal.conf.IndexPrecedenceOption indexPrecedenceOption
-
disableIndexing
protected transient boolean disableIndexing
-
-
Constructor Detail
-
MultipleBetaConstraint
public MultipleBetaConstraint()
-
MultipleBetaConstraint
public MultipleBetaConstraint(BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration conf, boolean disableIndexing)
-
MultipleBetaConstraint
protected MultipleBetaConstraint(BetaNodeFieldConstraint[] constraints, org.kie.internal.conf.IndexPrecedenceOption indexPrecedenceOption, boolean disableIndexing)
-
-
Method Detail
-
readExternal
public final void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeExternal
public final void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
init
public final void init(BuildContext context, short betaNodeType)
- Specified by:
initin interfaceBetaConstraints
-
initIndexes
public final void initIndexes(int depth, short betaNodeType, RuleBaseConfiguration config)- Specified by:
initIndexesin interfaceBetaConstraints
-
isIndexed
public final boolean isIndexed()
- Specified by:
isIndexedin interfaceBetaConstraints
-
getIndexCount
public final int getIndexCount()
- Specified by:
getIndexCountin interfaceBetaConstraints
-
createBetaMemory
public BetaMemory createBetaMemory(RuleBaseConfiguration config, short nodeType)
- Specified by:
createBetaMemoryin interfaceBetaConstraints
-
getConstraints
public final BetaNodeFieldConstraint[] getConstraints()
- Specified by:
getConstraintsin interfaceBetaConstraints
-
createContext
public final ContextEntry[] createContext()
- Specified by:
createContextin interfaceBetaConstraints
-
isEmpty
public final boolean isEmpty()
- Specified by:
isEmptyin interfaceBetaConstraints
-
isLeftUpdateOptimizationAllowed
public boolean isLeftUpdateOptimizationAllowed()
- Specified by:
isLeftUpdateOptimizationAllowedin interfaceBetaConstraints
-
registerEvaluationContext
public void registerEvaluationContext(BuildContext buildContext)
- Specified by:
registerEvaluationContextin interfaceBetaConstraints
-
-