org.drools.reteoo
Class JoinMemory

java.lang.Object
  extended by org.drools.reteoo.JoinMemory
All Implemented Interfaces:
Serializable

 class JoinMemory
extends Object
implements Serializable

Memory for left and right inputs of a JoinNode.

Author:
bob mcwhirter
See Also:
ReteTuple

Constructor Summary
JoinMemory(Set tupleDeclarations, Set commonDeclarations)
          Construct.
 
Method Summary
(package private)  TupleSet 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.
(package private)  TupleSet 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.
 void dump()
           
(package private)  boolean removeTuples(TupleKey key)
          Remove tuples from this memory.
 String toString()
          Produce debug string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JoinMemory

JoinMemory(Set tupleDeclarations,
           Set commonDeclarations)
Construct.

Parameters:
tupleDeclarations -
commonDeclarations -
Method Detail

removeTuples

boolean removeTuples(TupleKey key)
Remove tuples from this memory.

Parameters:
key - The key for the tuples to be removed.
Returns:
true if at least one tuple was removed; false otherwise.

addLeftTuple

TupleSet 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.

Parameters:
tuple - The Tuple to add to the left side memory.
Returns:
A Set of Tuples successfully created by joining the incoming tuple against existing Tuples on the right side memory.
See Also:
JoinNode, ReteTuple

addRightTuple

TupleSet 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.

Parameters:
tuple - The Tuple to add to the right side memory.
Returns:
A Set of Tuples successfully created by joining the incoming tuple against existing Tuples on the left side memory.
See Also:
JoinNode, ReteTuple

toString

public String toString()
Produce debug string.

Overrides:
toString in class Object
Returns:
The debug string.

dump

public void dump()


Copyright © 2001-2005 The Codehaus. All Rights Reserved.