public class ExistsNode extends BetaNode
ExistsNode extends BetaNode to perform tests for
the existence of a Fact plus one or more conditions. Where existence
is found the left ReteTuple is copied and propagated. Further to this it
maintains the "truth" by canceling any
Activations that are no longer
considered true by the retraction of ReteTuple's or FactHandleImpl.
Tuples are considered to be asserted from the left input and facts from the right input.
The BetaNode provides the BetaMemory to store asserted ReteTuples and
FactHandleImpls. Each fact handle is stored in the right
memory.constraints, indexedUnificationJoin, isLogTraceEnabled, log, objectMemory, rightInput, tupleMemoryEnabledleftInput, sinkassociations, hashcode, id, memoryId, partitionId, partitionsEnabled| Constructor and Description |
|---|
ExistsNode() |
ExistsNode(int id,
LeftTupleSource leftInput,
ObjectSource rightInput,
BetaConstraints joinNodeBinder,
BuildContext context) |
assertObject, attach, byPassModifyToBetaNode, calculateHashCode, createMemory, createRightTuple, doDeleteRightTuple, doUpdateRightTuple, dumpMemory, equals, getBetaMemory, getBetaMemoryFromRightInput, getConstraints, getFirstLeftTuple, getFirstRightTuple, getFirstTuple, getLeftIterator, getNextLeftTupleSinkNode, getNextObjectSinkNode, getObjectTypeNode, getPreviousLeftTupleSinkNode, getPreviousObjectSinkNode, getRawConstraints, getRightDeclaredMask, getRightInferredMask, getRightInput, getRightInputOtnId, getRightIterator, getRightIterator, getRightNegativeMask, getRules, initDeclaredMask, initInferredMask, initInferredMask, internalEquals, isIndexedUnificationJoin, isLeftTupleMemoryEnabled, isObjectMemoryEnabled, isRightInputIsRiaNode, isRightInputPassive, modifyObject, networkUpdated, readExternal, setConstraints, setLeftListenedProperties, setLeftTupleMemoryEnabled, setNextLeftTupleSinkNode, setNextObjectSinkNode, setPartitionId, setPreviousLeftTupleSinkNode, setPreviousObjectSinkNode, setRightDeclaredMask, setRightInput, setRightInputOtnId, setUnificationJoin, unwrapRightInput, writeExternaladdTupleSink, addTupleSink, addTupleSink, getLeftDeclaredMask, getLeftInferredMask, getLeftInputOtnId, getLeftInputPattern, getLeftNegativeMask, getLeftTupleSource, getObjectType, getObjectTypeForPropertyReactivity, getPositionInPath, getSinkPropagator, initMasks, isInUse, removeTupleSink, setLeftInferredMask, setLeftInputOtnId, setLeftTupleSource, setPartitionIdWithSinks, setSourcePartitionId, setSourcePartitionIdaddAssociation, addAssociation, getAssociatedRules, getAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getMemoryId, getPartitionId, getSinks, hashCode, initMemoryId, isAssociatedWith, isStreamMode, remove, removeAssociation, setId, setPartitionsEnabled, setStreamMode, thisNodeEqualsclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLeftInferredMask, getLeftInputOtnId, setLeftInputOtnId, setPartitionIdWithSinksgetLeftTupleSource, getPositionInPath, getSinkPropagatorsetPartitionIdWithSinksgetAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, isAssociatedWith, thisNodeEqualsgetMemoryIdpublic ExistsNode()
public ExistsNode(int id,
LeftTupleSource leftInput,
ObjectSource rightInput,
BetaConstraints joinNodeBinder,
BuildContext context)
public short getType()
getType in interface NetworkNodegetType in class LeftTupleSourcepublic LeftTuple createLeftTuple(InternalFactHandle factHandle, Sink sink, boolean leftTupleMemoryEnabled)
public LeftTuple createLeftTuple(InternalFactHandle factHandle, LeftTuple leftTuple, Sink sink)
public LeftTuple createLeftTuple(LeftTuple leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled)
public LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, Sink sink)
public LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTuple currentLeftChild, LeftTuple currentRightChild, Sink sink, boolean leftTupleMemoryEnabled)
public LeftTuple createPeer(LeftTuple original)
createPeer in interface LeftTupleSinkcreatePeer in class LeftTupleSourcepublic void retractRightTuple(RightTuple rightTuple, PropagationContext pctx, InternalWorkingMemory workingMemory)
public void modifyRightTuple(RightTuple rightTuple, PropagationContext context, InternalWorkingMemory workingMemory)
public boolean doRemove(RuleRemovalContext context, ReteooBuilder builder, InternalWorkingMemory[] workingMemories)
BaseNodeObjectSource or TupleSourcepublic boolean isLeftUpdateOptimizationAllowed()
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.