com.googlecode.sarasvati.join
Class MergeJoinStrategy

java.lang.Object
  extended by com.googlecode.sarasvati.join.MergeJoinStrategy
All Implemented Interfaces:
JoinStrategy

public class MergeJoinStrategy
extends Object
implements JoinStrategy

Class for JoinStrategies which wish to first attempt a merge, then fall back to another join strategy if that fails.

Author:
Paul Lorenz

Constructor Summary
MergeJoinStrategy(JoinStrategy fallbackJoinStrategy)
           
 
Method Summary
 JoinResult performJoin(Engine engine, ArcToken token)
          Called on every ArcToken when processed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergeJoinStrategy

public MergeJoinStrategy(JoinStrategy fallbackJoinStrategy)
Method Detail

performJoin

public JoinResult performJoin(Engine engine,
                              ArcToken token)
Description copied from interface: JoinStrategy
Called on every ArcToken when processed.

Specified by:
performJoin in interface JoinStrategy
Parameters:
engine - The engine executing the given process.
token - The arc token being processed.
Returns:
A JoinResult which contains a boolean indicating whether or not the join is complete and the set of arc tokens participating in the join.