public class SingleBetaConstraints extends Object implements BetaConstraints
| Modifier and Type | Field and Description |
|---|---|
protected BetaNodeFieldConstraint |
constraint |
protected boolean |
disableIndex |
protected boolean |
indexed |
| Constructor and Description |
|---|
SingleBetaConstraints() |
SingleBetaConstraints(BetaNodeFieldConstraint[] constraint,
RuleBaseConfiguration conf) |
SingleBetaConstraints(BetaNodeFieldConstraint constraint,
RuleBaseConfiguration conf) |
SingleBetaConstraints(BetaNodeFieldConstraint constraint,
RuleBaseConfiguration conf,
boolean disableIndex) |
protected BetaNodeFieldConstraint constraint
protected boolean indexed
protected transient boolean disableIndex
public SingleBetaConstraints()
public SingleBetaConstraints(BetaNodeFieldConstraint[] constraint, RuleBaseConfiguration conf)
public SingleBetaConstraints(BetaNodeFieldConstraint constraint, RuleBaseConfiguration conf)
public SingleBetaConstraints(BetaNodeFieldConstraint constraint, RuleBaseConfiguration conf, boolean disableIndex)
public void init(BuildContext context, short betaNodeType)
init in interface BetaConstraintspublic void initIndexes(int depth,
short betaNodeType,
RuleBaseConfiguration config)
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 SingleBetaConstraints cloneIfInUse()
cloneIfInUse in interface BetaConstraintspublic 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 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 getConstraint()
public BetaNodeFieldConstraint[] getConstraints()
getConstraints in interface BetaConstraintspublic boolean equals(Object object)
public void resetFactHandle(ContextEntry[] context)
resetFactHandle in interface BetaConstraintspublic void resetTuple(ContextEntry[] context)
resetTuple in interface BetaConstraintspublic 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–2021 JBoss by Red Hat. All rights reserved.