com.sun.labs.minion.test.regression
Class ANDTupleFilter

java.lang.Object
  extended by com.sun.labs.minion.test.regression.ANDTupleFilter
All Implemented Interfaces:
TupleFilter

public class ANDTupleFilter
extends java.lang.Object
implements TupleFilter

Applies the AND filter function to two input tuples. This means that the resulting tuples will only contain documents that both tuples have. For example, if tuple A has documents containing the word "apple", and tuple B has documents containing the word "boy", then applying this AND filter to these two tuples will create a tuple that has documents containing both of the words "apple" and "boy". Effectively, it is returning the intersection of the two tuples.


Constructor Summary
ANDTupleFilter()
           
 
Method Summary
 Tuple filter(Tuple tuple1, Tuple tuple2)
          Applies the AND filter function to the two input tuples.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ANDTupleFilter

public ANDTupleFilter()
Method Detail

filter

public Tuple filter(Tuple tuple1,
                    Tuple tuple2)
Applies the AND filter function to the two input tuples. The resulting tuple will only contain documents that appear in both the input tuples.

Specified by:
filter in interface TupleFilter
Parameters:
tuple1 - the first tuple
tuple2 - the second tuple
Returns:
the resulting tuple