|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.drools.reteoo.impl.JoinMemoryImpl
Memory for left and right inputs of a JoinNode
.
JoinMemory
,
JoinNodeImpl
,
ReteTuple
Constructor Summary | |
JoinMemoryImpl(JoinNodeImpl node)
Construct. |
Method Summary | |
protected java.util.Set |
addLeftTuple(ReteTuple tuple)
Add a ReteTuple received from the JoinNode's
left input to the left side of this memory, and attempt
to join to existing Tuples in the right
side. |
protected java.util.Set |
addRightTuple(ReteTuple tuple)
Add a ReteTuple received from the JoinNode's
right input to the right side of this memory, and attempt
to join to existing Tuples in the left
side. |
protected java.util.Set |
attemptJoin(ReteTuple tuple,
java.util.Iterator tupleIter)
Attempt to join the tuple against the
tuples available through the tupleIterator . |
protected ReteTuple |
attemptJoin(ReteTuple left,
ReteTuple right)
Attempt to join two Tuples . |
protected java.util.Iterator |
getJoinDeclarationIterator()
Retrieve an Iterator over the common
Declarations used to join Tuples
from the left and right side memories. |
protected java.util.Iterator |
getLeftTupleIterator()
Retrieve an Iterator over the Tuples
held in the left side memory. |
protected org.drools.reteoo.impl.TupleSet |
getLeftTuples()
Retrieve the List of Tuples
held in the left side memory. |
protected java.util.Iterator |
getRightTupleIterator()
Retrieve an Iterator over the Tuples
held in the right side memory. |
protected org.drools.reteoo.impl.TupleSet |
getRightTuples()
Retrieve the List of Tuples
held in the right side memory. |
protected void |
modifyLeftTuples(java.lang.Object trigger,
org.drools.reteoo.impl.TupleSet newTuples,
JoinNodeImpl joinNode,
WorkingMemory workingMemory)
Modify tuples on the left-side. |
protected void |
modifyRightTuples(java.lang.Object trigger,
org.drools.reteoo.impl.TupleSet newTuples,
JoinNodeImpl joinNode,
WorkingMemory workingMemory)
Modify tuples on the right-side. |
protected void |
modifyTuples(java.lang.Object trigger,
org.drools.reteoo.impl.TupleSet newTuples,
org.drools.reteoo.impl.TupleSet thisSideTuples,
org.drools.reteoo.impl.TupleSet thatSideTuples,
JoinNodeImpl joinNode,
WorkingMemory workingMemory)
Modify tuples |
protected void |
retractObject(java.lang.Object object)
Retract an object from this memory. |
protected void |
retractTuples(java.util.Set keys)
Retract tuples from this memory. |
protected void |
retractTuples(org.drools.reteoo.impl.TupleKey key)
Retract tuples from this memory. |
java.lang.String |
toString()
Produce debug string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JoinMemoryImpl(JoinNodeImpl node)
node
- The JoinNode
this memory
is for.Method Detail |
protected void retractObject(java.lang.Object object)
object
- The object to retract.protected void retractTuples(java.util.Set keys)
keys
- The keys for the tuples to be removed.protected void retractTuples(org.drools.reteoo.impl.TupleKey key)
key
- The key for the tuples to be removed.protected void modifyLeftTuples(java.lang.Object trigger, org.drools.reteoo.impl.TupleSet newTuples, JoinNodeImpl joinNode, WorkingMemory workingMemory) throws FactException
trigger
- Triggering object.newTuples
- Modification replacement tuples.joinNode
- This memory's join node.workingMemory
- The working memory session.FactException
- if an error occurs during modification.protected void modifyRightTuples(java.lang.Object trigger, org.drools.reteoo.impl.TupleSet newTuples, JoinNodeImpl joinNode, WorkingMemory workingMemory) throws FactException
trigger
- Triggering object.newTuples
- Modification replacement tuples.joinNode
- This memory's join node.workingMemory
- The working memory session.FactException
- if an error occurs during modification.protected void modifyTuples(java.lang.Object trigger, org.drools.reteoo.impl.TupleSet newTuples, org.drools.reteoo.impl.TupleSet thisSideTuples, org.drools.reteoo.impl.TupleSet thatSideTuples, JoinNodeImpl joinNode, WorkingMemory workingMemory) throws FactException
trigger
- Triggering object.newTuples
- Modification replacement tuples.thisSideTuples
- The tuples on the side that's receiving
the modifications.thatSideTuples
- The tuples on the side that's not
receiving the modifications.joinNode
- This memory's join node.workingMemory
- The working memory session.FactException
- if an error occurs during modification.protected java.util.Set addLeftTuple(ReteTuple tuple)
ReteTuple
received from the JoinNode's
left input to the left side of this memory, and attempt
to join to existing Tuples
in the right
side.tuple
- The Tuple
to add to the left
side memory.List
of Tuples
successfully
created by joining the incoming tuple
against existing Tuples
on the right
side memory.JoinNodeImpl
,
ReteTuple
protected org.drools.reteoo.impl.TupleSet getLeftTuples()
List
of Tuples
held in the left side memory.List
of Tuples
help in the left side memory.protected java.util.Iterator getLeftTupleIterator()
Iterator
over the Tuples
held in the left side memory.Iterator
over the Tuples
help in the left side memory.protected java.util.Set addRightTuple(ReteTuple tuple)
ReteTuple
received from the JoinNode's
right input to the right side of this memory, and attempt
to join to existing Tuples
in the left
side.tuple
- The Tuple
to add to the right
side memory.List
of Tuples
successfully
created by joining the incoming tuple
against existing Tuples
on the left
side memory.JoinNodeImpl
,
ReteTuple
protected org.drools.reteoo.impl.TupleSet getRightTuples()
List
of Tuples
held in the right side memory.List
of Tuples
help in the right side memory.protected java.util.Iterator getRightTupleIterator()
Iterator
over the Tuples
held in the right side memory.Iterator
over the Tuples
help in the right side memory.protected java.util.Iterator getJoinDeclarationIterator()
Iterator
over the common
Declarations
used to join Tuples
from the left and right side memories.Iterator
of common join
Declarations
.protected java.util.Set attemptJoin(ReteTuple tuple, java.util.Iterator tupleIter)
tuple
against the
tuples available through the tupleIterator
.tuple
- The Tuple
to attempt joining.tupleIter
- The Iterator
over
Tuples
to attempt joining to the
tuple
parameter.List
of joined
Tuples
.protected ReteTuple attemptJoin(ReteTuple left, ReteTuple right)
Tuples
.left
- The left-side Tuple
.right
- The right-side Tuple
.Tuple
if a join
is possible, else null
.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |