public class JoinPredicate
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private int |
field1 |
private int |
field2 |
private Predicate.Op |
op |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
JoinPredicate(int field1,
Predicate.Op op,
int field2)
Constructor -- create a new predicate over two fields of two tuples.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Tuple> |
applyAll(DbIterator iterator1,
DbIterator iterator2) |
private java.util.List<Tuple> |
applyOne(Tuple tuple,
java.util.List<Tuple> tuples) |
boolean |
filter(Tuple t1,
Tuple t2)
Apply the predicate to the two specified tuples.
|
int |
getField1() |
int |
getField2() |
Predicate.Op |
getOperator() |
private static final long serialVersionUID
private int field1
private int field2
private Predicate.Op op
public JoinPredicate(int field1,
Predicate.Op op,
int field2)
field1 - The field index into the first tuple in the predicatefield2 - The field index into the second tuple in the predicateop - The operation to apply (as defined in Predicate.Op); either
Predicate.Op.GREATER_THAN, Predicate.Op.LESS_THAN,
Predicate.Op.EQUAL, Predicate.Op.GREATER_THAN_OR_EQ, or
Predicate.Op.LESS_THAN_OR_EQPredicatepublic boolean filter(Tuple t1, Tuple t2)
t1 - First tuplet2 - Second tuplepublic int getField1()
public int getField2()
public Predicate.Op getOperator()
public java.util.List<Tuple> applyAll(DbIterator iterator1, DbIterator iterator2) throws DbException, TransactionAbortedException