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 org.drools.base.rule.constraint.BetaNodeFieldConstraint[]
constraints
protected boolean
disableIndexing
protected boolean[]
indexed
protected org.kie.internal.conf.IndexPrecedenceOption
indexPrecedenceOption
-
Constructor Summary
Constructors Modifier Constructor Description MultipleBetaConstraint()
MultipleBetaConstraint(org.drools.base.rule.constraint.BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration conf, boolean disableIndexing)
protected
MultipleBetaConstraint(org.drools.base.rule.constraint.BetaNodeFieldConstraint[] constraints, org.kie.internal.conf.IndexPrecedenceOption indexPrecedenceOption, boolean disableIndexing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BetaMemory
createBetaMemory(RuleBaseConfiguration config, short nodeType)
org.drools.base.rule.ContextEntry[]
createContext()
org.drools.base.rule.constraint.BetaNodeFieldConstraint[]
getConstraints()
int
getIndexCount()
void
init(BuildContext context, short betaNodeType)
void
initIndexes(int depth, short betaNodeType, RuleBaseConfiguration config)
boolean
isEmpty()
boolean
isIndexed()
boolean
isLeftUpdateOptimizationAllowed()
void
readExternal(java.io.ObjectInput in)
void
registerEvaluationContext(BuildContext buildContext)
void
writeExternal(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
-
-
-
-
Constructor Detail
-
MultipleBetaConstraint
public MultipleBetaConstraint()
-
MultipleBetaConstraint
public MultipleBetaConstraint(org.drools.base.rule.constraint.BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration conf, boolean disableIndexing)
-
MultipleBetaConstraint
protected MultipleBetaConstraint(org.drools.base.rule.constraint.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:
readExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
writeExternal
public final void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
-
init
public final void init(BuildContext context, short betaNodeType)
- Specified by:
init
in interfaceBetaConstraints
-
initIndexes
public final void initIndexes(int depth, short betaNodeType, RuleBaseConfiguration config)
- Specified by:
initIndexes
in interfaceBetaConstraints
-
isIndexed
public final boolean isIndexed()
- Specified by:
isIndexed
in interfaceBetaConstraints
-
getIndexCount
public final int getIndexCount()
- Specified by:
getIndexCount
in interfaceBetaConstraints
-
createBetaMemory
public BetaMemory createBetaMemory(RuleBaseConfiguration config, short nodeType)
- Specified by:
createBetaMemory
in interfaceBetaConstraints
-
getConstraints
public final org.drools.base.rule.constraint.BetaNodeFieldConstraint[] getConstraints()
- Specified by:
getConstraints
in interfaceBetaConstraints
-
createContext
public final org.drools.base.rule.ContextEntry[] createContext()
- Specified by:
createContext
in interfaceBetaConstraints
-
isEmpty
public final boolean isEmpty()
- Specified by:
isEmpty
in interfaceBetaConstraints
-
isLeftUpdateOptimizationAllowed
public boolean isLeftUpdateOptimizationAllowed()
- Specified by:
isLeftUpdateOptimizationAllowed
in interfaceBetaConstraints
-
registerEvaluationContext
public void registerEvaluationContext(BuildContext buildContext)
- Specified by:
registerEvaluationContext
in interfaceBetaConstraints
-
-