Package org.drools.core.common
Class SingleBetaConstraints
java.lang.Object
org.drools.core.common.SingleBetaConstraints
- All Implemented Interfaces:
Externalizable,Serializable,BetaConstraints<ContextEntry>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BetaConstraint<ContextEntry>protected booleanprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionSingleBetaConstraints(BetaConstraint[] constraint, RuleBaseConfiguration conf) SingleBetaConstraints(BetaConstraint constraint, RuleBaseConfiguration conf) SingleBetaConstraints(BetaConstraint constraint, RuleBaseConfiguration conf, boolean disableIndex) -
Method Summary
Modifier and TypeMethodDescriptionclone()createBetaMemory(RuleBaseConfiguration config, int nodeType) booleanDetermine if another object is equal to this.intorg.drools.util.bitmask.BitMaskgetListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List<String> settableProperties) inthashCode()voidinit(BuildContext context, int betaNodeType) voidinitIndexes(int depth, int betaNodeType, RuleBaseConfiguration config) booleanisAllowedCachedLeft(ContextEntry context, FactHandle handle) booleanisAllowedCachedRight(BaseTuple tuple, ContextEntry context) booleanisEmpty()booleanbooleanvoidvoidregisterEvaluationContext(BuildContext buildContext) voidresetFactHandle(ContextEntry context) voidresetTuple(ContextEntry context) voidupdateFromFactHandle(ContextEntry context, ValueResolver valueResolver, FactHandle handle) voidupdateFromTuple(ContextEntry context, ValueResolver valueResolver, Tuple tuple) void
-
Field Details
-
constraint
-
indexed
protected boolean indexed -
disableIndex
protected transient boolean disableIndex
-
-
Constructor Details
-
SingleBetaConstraints
public SingleBetaConstraints() -
SingleBetaConstraints
-
SingleBetaConstraints
-
SingleBetaConstraints
public SingleBetaConstraints(BetaConstraint constraint, RuleBaseConfiguration conf, boolean disableIndex)
-
-
Method Details
-
init
- Specified by:
initin interfaceBetaConstraints<ContextEntry>
-
initIndexes
- Specified by:
initIndexesin interfaceBetaConstraints<ContextEntry>
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
cloneIfInUse
- Specified by:
cloneIfInUsein interfaceBetaConstraints<ContextEntry>
-
clone
-
createContext
- Specified by:
createContextin interfaceBetaConstraints<ContextEntry>
-
updateFromTuple
- Specified by:
updateFromTuplein interfaceBetaConstraints<ContextEntry>
-
updateFromFactHandle
public void updateFromFactHandle(ContextEntry context, ValueResolver valueResolver, FactHandle handle) - Specified by:
updateFromFactHandlein interfaceBetaConstraints<ContextEntry>
-
isAllowedCachedLeft
- Specified by:
isAllowedCachedLeftin interfaceBetaConstraints<ContextEntry>
-
isAllowedCachedRight
- Specified by:
isAllowedCachedRightin interfaceBetaConstraints<ContextEntry>
-
isIndexed
public boolean isIndexed()- Specified by:
isIndexedin interfaceBetaConstraints<ContextEntry>
-
getIndexCount
public int getIndexCount()- Specified by:
getIndexCountin interfaceBetaConstraints<ContextEntry>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceBetaConstraints<ContextEntry>
-
createBetaMemory
- Specified by:
createBetaMemoryin interfaceBetaConstraints<ContextEntry>
-
hashCode
public int hashCode() -
getConstraint
-
getConstraints
- Specified by:
getConstraintsin interfaceBetaConstraints<ContextEntry>
-
equals
Determine if another object is equal to this. -
resetFactHandle
- Specified by:
resetFactHandlein interfaceBetaConstraints<ContextEntry>
-
resetTuple
- Specified by:
resetTuplein interfaceBetaConstraints<ContextEntry>
-
getOriginalConstraint
- Specified by:
getOriginalConstraintin interfaceBetaConstraints<ContextEntry>
-
getListenedPropertyMask
public org.drools.util.bitmask.BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List<String> settableProperties) - Specified by:
getListenedPropertyMaskin interfaceBetaConstraints<ContextEntry>
-
isLeftUpdateOptimizationAllowed
public boolean isLeftUpdateOptimizationAllowed()- Specified by:
isLeftUpdateOptimizationAllowedin interfaceBetaConstraints<ContextEntry>
-
registerEvaluationContext
- Specified by:
registerEvaluationContextin interfaceBetaConstraints<ContextEntry>
-