Package org.drools.core.common
Class DefaultBetaConstraints
- java.lang.Object
-
- org.drools.core.common.DefaultBetaConstraints
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,BetaConstraints
public class DefaultBetaConstraints extends java.lang.Object implements BetaConstraints
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BetaNodeFieldConstraint[]constraintsprotected booleandisableIndexingprotected intindexedprotected org.kie.internal.conf.IndexPrecedenceOptionindexPrecedenceOption
-
Constructor Summary
Constructors Constructor Description DefaultBetaConstraints()DefaultBetaConstraints(BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration conf)DefaultBetaConstraints(BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration conf, boolean disableIndexing)
-
Method Summary
-
-
-
Field Detail
-
disableIndexing
protected transient boolean disableIndexing
-
constraints
protected BetaNodeFieldConstraint[] constraints
-
indexPrecedenceOption
protected org.kie.internal.conf.IndexPrecedenceOption indexPrecedenceOption
-
indexed
protected int indexed
-
-
Constructor Detail
-
DefaultBetaConstraints
public DefaultBetaConstraints()
-
DefaultBetaConstraints
public DefaultBetaConstraints(BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration conf)
-
DefaultBetaConstraints
public DefaultBetaConstraints(BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration conf, boolean disableIndexing)
-
-
Method Detail
-
cloneIfInUse
public DefaultBetaConstraints cloneIfInUse()
- Specified by:
cloneIfInUsein interfaceBetaConstraints
-
init
public void init(BuildContext context, short betaNodeType)
- Specified by:
initin interfaceBetaConstraints
-
initIndexes
public void initIndexes(int depth, short betaNodeType, RuleBaseConfiguration config)- Specified by:
initIndexesin interfaceBetaConstraints
-
readExternal
public 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 void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
createContext
public ContextEntry[] createContext()
- Specified by:
createContextin interfaceBetaConstraints
-
updateFromTuple
public void updateFromTuple(ContextEntry[] context, ReteEvaluator reteEvaluator, Tuple tuple)
- Specified by:
updateFromTuplein interfaceBetaConstraints
-
updateFromFactHandle
public void updateFromFactHandle(ContextEntry[] context, ReteEvaluator reteEvaluator, InternalFactHandle handle)
- Specified by:
updateFromFactHandlein interfaceBetaConstraints
-
resetTuple
public void resetTuple(ContextEntry[] context)
- Specified by:
resetTuplein interfaceBetaConstraints
-
resetFactHandle
public void resetFactHandle(ContextEntry[] context)
- Specified by:
resetFactHandlein interfaceBetaConstraints
-
isAllowedCachedLeft
public boolean isAllowedCachedLeft(ContextEntry[] context, InternalFactHandle handle)
- Specified by:
isAllowedCachedLeftin interfaceBetaConstraints
-
isAllowedCachedRight
public boolean isAllowedCachedRight(ContextEntry[] context, Tuple tuple)
- Specified by:
isAllowedCachedRightin interfaceBetaConstraints
-
isIndexed
public boolean isIndexed()
- Specified by:
isIndexedin interfaceBetaConstraints
-
getIndexCount
public int getIndexCount()
- Specified by:
getIndexCountin interfaceBetaConstraints
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceBetaConstraints
-
createBetaMemory
public BetaMemory createBetaMemory(RuleBaseConfiguration config, short nodeType)
- Specified by:
createBetaMemoryin interfaceBetaConstraints
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getConstraints
public BetaNodeFieldConstraint[] getConstraints()
- Specified by:
getConstraintsin interfaceBetaConstraints
-
equals
public boolean equals(java.lang.Object object)
Determine if another object is equal to this.- Overrides:
equalsin classjava.lang.Object- Parameters:
object- The object to test.- Returns:
trueifobjectis equal to this, otherwisefalse.
-
getOriginalConstraint
public BetaConstraints getOriginalConstraint()
- Specified by:
getOriginalConstraintin interfaceBetaConstraints
-
getListenedPropertyMask
public BitMask getListenedPropertyMask(ObjectType modifiedType, java.util.List<java.lang.String> settableProperties)
- Specified by:
getListenedPropertyMaskin interfaceBetaConstraints
-
isLeftUpdateOptimizationAllowed
public boolean isLeftUpdateOptimizationAllowed()
- Specified by:
isLeftUpdateOptimizationAllowedin interfaceBetaConstraints
-
registerEvaluationContext
public void registerEvaluationContext(BuildContext buildContext)
- Specified by:
registerEvaluationContextin interfaceBetaConstraints
-
-