public class DefaultBetaConstraints extends Object implements BetaConstraints
| Modifier and Type | Field and Description |
|---|---|
protected BetaNodeFieldConstraint[] |
constraints |
protected boolean |
disableIndexing |
protected int |
indexed |
protected org.kie.internal.conf.IndexPrecedenceOption |
indexPrecedenceOption |
| Constructor and Description |
|---|
DefaultBetaConstraints() |
DefaultBetaConstraints(BetaNodeFieldConstraint[] constraints,
RuleBaseConfiguration conf) |
DefaultBetaConstraints(BetaNodeFieldConstraint[] constraints,
RuleBaseConfiguration conf,
boolean disableIndexing) |
protected transient boolean disableIndexing
protected BetaNodeFieldConstraint[] constraints
protected org.kie.internal.conf.IndexPrecedenceOption indexPrecedenceOption
protected int indexed
public DefaultBetaConstraints()
public DefaultBetaConstraints(BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration conf)
public DefaultBetaConstraints(BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration conf, boolean disableIndexing)
public DefaultBetaConstraints cloneIfInUse()
cloneIfInUse in interface BetaConstraintspublic void init(BuildContext context, short betaNodeType)
init in interface BetaConstraintspublic void initIndexes(int depth,
short betaNodeType)
initIndexes in interface BetaConstraintspublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic ContextEntry[] createContext()
createContext in interface BetaConstraintspublic void updateFromTuple(ContextEntry[] context, InternalWorkingMemory workingMemory, Tuple tuple)
updateFromTuple in interface BetaConstraintspublic void updateFromFactHandle(ContextEntry[] context, InternalWorkingMemory workingMemory, InternalFactHandle handle)
updateFromFactHandle in interface BetaConstraintspublic void resetTuple(ContextEntry[] context)
resetTuple in interface BetaConstraintspublic void resetFactHandle(ContextEntry[] context)
resetFactHandle in interface BetaConstraintspublic boolean isAllowedCachedLeft(ContextEntry[] context, InternalFactHandle handle)
isAllowedCachedLeft in interface BetaConstraintspublic boolean isAllowedCachedRight(ContextEntry[] context, Tuple tuple)
isAllowedCachedRight in interface BetaConstraintspublic boolean isIndexed()
isIndexed in interface BetaConstraintspublic int getIndexCount()
getIndexCount in interface BetaConstraintspublic boolean isEmpty()
isEmpty in interface BetaConstraintspublic BetaMemory createBetaMemory(RuleBaseConfiguration config, short nodeType)
createBetaMemory in interface BetaConstraintspublic BetaNodeFieldConstraint[] getConstraints()
getConstraints in interface BetaConstraintspublic boolean equals(Object object)
public BetaConstraints getOriginalConstraint()
getOriginalConstraint in interface BetaConstraintspublic BitMask getListenedPropertyMask(Class modifiedClass, List<String> settableProperties)
getListenedPropertyMask in interface BetaConstraintspublic boolean isLeftUpdateOptimizationAllowed()
isLeftUpdateOptimizationAllowed in interface BetaConstraintspublic void registerEvaluationContext(BuildContext buildContext)
registerEvaluationContext in interface BetaConstraintsCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.