Package org.drools.core.common
Class MultipleBetaConstraint
- java.lang.Object
-
- org.drools.core.common.MultipleBetaConstraint
-
- All Implemented Interfaces:
Externalizable
,Serializable
,BetaConstraints
- Direct Known Subclasses:
DoubleBetaConstraints
,QuadroupleBetaConstraints
,TripleBetaConstraints
public abstract class MultipleBetaConstraint extends Object implements BetaConstraints
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BetaNodeFieldConstraint[]
constraints
protected boolean
disableIndexing
protected boolean[]
indexed
protected org.kie.internal.conf.IndexPrecedenceOption
indexPrecedenceOption
-
Constructor Summary
Constructors Modifier Constructor Description MultipleBetaConstraint()
MultipleBetaConstraint(BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration conf, boolean disableIndexing)
protected
MultipleBetaConstraint(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)
ContextEntry[]
createContext()
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(ObjectInput in)
void
registerEvaluationContext(BuildContext buildContext)
void
writeExternal(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(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public final void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
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 BetaNodeFieldConstraint[] getConstraints()
- Specified by:
getConstraints
in interfaceBetaConstraints
-
createContext
public final 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
-
-