org.drools.reteoo
Class JoinNode
java.lang.Object
org.drools.common.BaseNode
org.drools.reteoo.LeftTupleSource
org.drools.reteoo.BetaNode
org.drools.reteoo.JoinNode
- All Implemented Interfaces:
- Externalizable, Serializable, NetworkNode, NodeMemory, LeftTupleSink, LeftTupleSinkNode, ObjectSink, ObjectSinkNode, RightTupleSink, Sink
public class JoinNode
- extends BetaNode
- See Also:
- Serialized Form
|
Method Summary |
void |
assertLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
Assert a new ReteTuple. |
void |
assertObject(InternalFactHandle factHandle,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
LeftTuple |
createLeftTuple(InternalFactHandle factHandle,
LeftTupleSink sink,
boolean leftTupleMemoryEnabled)
|
LeftTuple |
createLeftTuple(LeftTuple leftTuple,
LeftTupleSink sink,
boolean leftTupleMemoryEnabled)
|
LeftTuple |
createLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
LeftTuple currentLeftChild,
LeftTuple currentRightChild,
LeftTupleSink sink,
boolean leftTupleMemoryEnabled)
|
LeftTuple |
createLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
LeftTupleSink sink)
|
short |
getType()
|
void |
modifyLeftTuple(InternalFactHandle factHandle,
ModifyPreviousTuples modifyPreviousTuples,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
modifyLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
modifyObject(InternalFactHandle factHandle,
ModifyPreviousTuples modifyPreviousTuples,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
modifyRightTuple(RightTuple rightTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
protected void |
propagateFromLeft(RightTuple rightTuple,
LeftTuple leftTuple,
ContextEntry[] contextEntry,
boolean useLeftMemory,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
protected void |
propagateFromRight(RightTuple rightTuple,
LeftTuple leftTuple,
BetaMemory memory,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
protected LeftTuple |
propagateOrModifyFromLeft(RightTuple rightTuple,
LeftTuple leftTuple,
LeftTuple childLeftTuple,
ContextEntry[] contextEntry,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
protected LeftTuple |
propagateOrModifyFromRight(RightTuple rightTuple,
LeftTuple leftTuple,
LeftTuple childLeftTuple,
BetaMemory memory,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
retractLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
retractRightTuple(RightTuple rightTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
String |
toString()
|
void |
updateSink(LeftTupleSink sink,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
| Methods inherited from class org.drools.reteoo.BetaNode |
attach, byPassModifyToBetaNode, createMemory, createRightTuple, doRemove, dumpMemory, equals, getConstraints, getFirstLeftTuple, getFirstLeftTuple, getFirstRightTuple, getFirstRightTuple, getLeftIterator, getLeftTupleSource, getNextLeftTupleSinkNode, getNextObjectSinkNode, getObjectTypeNode, getPreviousLeftTupleSinkNode, getPreviousObjectSinkNode, getRawConstraints, getRightDeclaredMask, getRightInferredMask, getRightInputOtnId, getRightIterator, getRightNegativeMask, getRules, hashCode, initDeclaredMask, initInferredMask, initInferredMask, isConcurrentRightTupleMemory, isLeftTupleMemoryEnabled, isObjectMemoryEnabled, leftUnlinked, networkUpdated, readExternal, rightUnlinked, setConcurrentRightTupleMemory, setLeftListenedProperties, setLeftTupleMemoryEnabled, setNextLeftTupleSinkNode, setNextObjectSinkNode, setObjectMemoryEnabled, setPreviousLeftTupleSinkNode, setPreviousObjectSinkNode, setRightDeclaredMask, setRightInputOtnId, unwrapRightInput, writeExternal |
| Methods inherited from class org.drools.reteoo.LeftTupleSource |
addTupleSink, addTupleSink, addTupleSink, doModifyLeftTuple, getLeftDeclaredMask, getLeftInferredMask, getLeftInputOtnId, getLeftNegativeMask, getObjectType, getSinkPropagator, initMasks, isInUse, removeTupleSink, setLeftInferredMask, setLeftInputOtnId, unwrapLeftInput |
JoinNode
public JoinNode()
JoinNode
public JoinNode(int id,
LeftTupleSource leftInput,
ObjectSource rightInput,
BetaConstraints binder,
BuildContext context)
assertLeftTuple
public void assertLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
- Description copied from interface:
LeftTupleSink
- Assert a new
ReteTuple.
- Parameters:
leftTuple - The ReteTuple to propagate.context - The PropagationContext of the WorkingMemory actionworkingMemory - the WorkingMemory session.
propagateFromLeft
protected void propagateFromLeft(RightTuple rightTuple,
LeftTuple leftTuple,
ContextEntry[] contextEntry,
boolean useLeftMemory,
PropagationContext context,
InternalWorkingMemory workingMemory)
assertObject
public void assertObject(InternalFactHandle factHandle,
PropagationContext context,
InternalWorkingMemory workingMemory)
propagateFromRight
protected void propagateFromRight(RightTuple rightTuple,
LeftTuple leftTuple,
BetaMemory memory,
PropagationContext context,
InternalWorkingMemory workingMemory)
retractRightTuple
public void retractRightTuple(RightTuple rightTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
retractLeftTuple
public void retractLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
modifyRightTuple
public void modifyRightTuple(RightTuple rightTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
propagateOrModifyFromRight
protected LeftTuple propagateOrModifyFromRight(RightTuple rightTuple,
LeftTuple leftTuple,
LeftTuple childLeftTuple,
BetaMemory memory,
PropagationContext context,
InternalWorkingMemory workingMemory)
modifyLeftTuple
public void modifyLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
propagateOrModifyFromLeft
protected LeftTuple propagateOrModifyFromLeft(RightTuple rightTuple,
LeftTuple leftTuple,
LeftTuple childLeftTuple,
ContextEntry[] contextEntry,
PropagationContext context,
InternalWorkingMemory workingMemory)
updateSink
public void updateSink(LeftTupleSink sink,
PropagationContext context,
InternalWorkingMemory workingMemory)
- Specified by:
updateSink in class LeftTupleSource
modifyLeftTuple
public void modifyLeftTuple(InternalFactHandle factHandle,
ModifyPreviousTuples modifyPreviousTuples,
PropagationContext context,
InternalWorkingMemory workingMemory)
- Specified by:
modifyLeftTuple in interface LeftTupleSink- Overrides:
modifyLeftTuple in class LeftTupleSource
modifyObject
public void modifyObject(InternalFactHandle factHandle,
ModifyPreviousTuples modifyPreviousTuples,
PropagationContext context,
InternalWorkingMemory workingMemory)
- Specified by:
modifyObject in interface ObjectSink- Overrides:
modifyObject in class BetaNode
getType
public short getType()
toString
public String toString()
- Overrides:
toString in class BetaNode
createLeftTuple
public LeftTuple createLeftTuple(InternalFactHandle factHandle,
LeftTupleSink sink,
boolean leftTupleMemoryEnabled)
createLeftTuple
public LeftTuple createLeftTuple(LeftTuple leftTuple,
LeftTupleSink sink,
boolean leftTupleMemoryEnabled)
createLeftTuple
public LeftTuple createLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
LeftTupleSink sink)
createLeftTuple
public LeftTuple createLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
LeftTuple currentLeftChild,
LeftTuple currentRightChild,
LeftTupleSink sink,
boolean leftTupleMemoryEnabled)
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.