Package org.drools.core.common
Class MultipleBetaConstraint
java.lang.Object
org.drools.core.common.MultipleBetaConstraint
- All Implemented Interfaces:
Externalizable,Serializable,BetaConstraints<ContextEntry[]>
- Direct Known Subclasses:
DoubleBetaConstraints,QuadroupleBetaConstraints,TripleBetaConstraints
public abstract class MultipleBetaConstraint
extends Object
implements BetaConstraints<ContextEntry[]>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BetaConstraint<ContextEntry>[]protected booleanprotected boolean[]protected IndexPrecedenceOption -
Constructor Summary
ConstructorsModifierConstructorDescriptionMultipleBetaConstraint(BetaConstraint[] constraints, RuleBaseConfiguration conf, boolean disableIndexing) protectedMultipleBetaConstraint(BetaConstraint[] constraints, IndexPrecedenceOption indexPrecedenceOption, boolean disableIndexing) -
Method Summary
Modifier and TypeMethodDescriptioncreateBetaMemory(RuleBaseConfiguration config, int nodeType) final ContextEntry[]final BetaConstraint[]final intfinal voidinit(BuildContext context, int betaNodeType) final voidinitIndexes(int depth, int betaNodeType, RuleBaseConfiguration config) final booleanisEmpty()final booleanbooleanfinal voidvoidregisterEvaluationContext(BuildContext buildContext) final voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.drools.core.common.BetaConstraints
cloneIfInUse, getListenedPropertyMask, getOriginalConstraint, isAllowedCachedLeft, isAllowedCachedRight, resetFactHandle, resetTuple, updateFromFactHandle, updateFromTuple
-
Field Details
-
constraints
-
indexed
protected boolean[] indexed -
indexPrecedenceOption
-
disableIndexing
protected transient boolean disableIndexing
-
-
Constructor Details
-
MultipleBetaConstraint
public MultipleBetaConstraint() -
MultipleBetaConstraint
public MultipleBetaConstraint(BetaConstraint[] constraints, RuleBaseConfiguration conf, boolean disableIndexing) -
MultipleBetaConstraint
protected MultipleBetaConstraint(BetaConstraint[] constraints, IndexPrecedenceOption indexPrecedenceOption, boolean disableIndexing)
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
init
- Specified by:
initin interfaceBetaConstraints<ContextEntry[]>
-
initIndexes
- Specified by:
initIndexesin interfaceBetaConstraints<ContextEntry[]>
-
isIndexed
public final boolean isIndexed()- Specified by:
isIndexedin interfaceBetaConstraints<ContextEntry[]>
-
getIndexCount
public final int getIndexCount()- Specified by:
getIndexCountin interfaceBetaConstraints<ContextEntry[]>
-
createBetaMemory
- Specified by:
createBetaMemoryin interfaceBetaConstraints<ContextEntry[]>
-
getConstraints
- Specified by:
getConstraintsin interfaceBetaConstraints<ContextEntry[]>
-
createContext
- Specified by:
createContextin interfaceBetaConstraints<ContextEntry[]>
-
isEmpty
public final boolean isEmpty()- Specified by:
isEmptyin interfaceBetaConstraints<ContextEntry[]>
-
isLeftUpdateOptimizationAllowed
public boolean isLeftUpdateOptimizationAllowed()- Specified by:
isLeftUpdateOptimizationAllowedin interfaceBetaConstraints<ContextEntry[]>
-
registerEvaluationContext
- Specified by:
registerEvaluationContextin interfaceBetaConstraints<ContextEntry[]>
-