Apply the predicate to the two specified tuples. The comparison can be made through Field's compare method. @return true if the tuples satisfy the predicate.
(Tuple t1, Tuple t2)
| 44 | * @return true if the tuples satisfy the predicate. |
| 45 | */ |
| 46 | public boolean filter(Tuple t1, Tuple t2) { |
| 47 | // some code goes here |
| 48 | return t1.getField(field1).compare(op,t2.getField(field2)); |
| 49 | } |
| 50 | |
| 51 | public int getField1() |
| 52 | { |