org.jrdf.query.relation.operation.mem.join.semi
Class SemiJoinEngine

java.lang.Object
  extended by org.jrdf.query.relation.operation.mem.join.semi.SemiJoinEngine
All Implemented Interfaces:
TupleEngine

public class SemiJoinEngine
extends Object
implements TupleEngine

Join two relations if they have common tuple values and projects the results back onto the first relation.


Constructor Summary
SemiJoinEngine(TupleFactory tupleFactory, AttributeValuePairComparator avpComparator)
           
 
Method Summary
 SortedSet<Attribute> getHeading(Relation relation1, Relation relation2)
           
 void process(SortedSet<Attribute> headings, SortedSet<AttributeValuePair> avps1, SortedSet<AttributeValuePair> avps2, SortedSet<Tuple> result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SemiJoinEngine

public SemiJoinEngine(TupleFactory tupleFactory,
                      AttributeValuePairComparator avpComparator)
Method Detail

getHeading

public SortedSet<Attribute> getHeading(Relation relation1,
                                       Relation relation2)
Specified by:
getHeading in interface TupleEngine

process

public void process(SortedSet<Attribute> headings,
                    SortedSet<AttributeValuePair> avps1,
                    SortedSet<AttributeValuePair> avps2,
                    SortedSet<Tuple> result)
Specified by:
process in interface TupleEngine