|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectsimpledb.Predicate
public class Predicate
Predicate compares tuples to a specified Field value.
| Nested Class Summary | |
|---|---|
static class |
Predicate.Op
Constants used for return codes in Field.compare |
| Constructor Summary | |
|---|---|
Predicate(int field,
Predicate.Op op,
Field operand)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
filter(Tuple t)
Compares the field number of t specified in the constructor to the operand field specified in the constructor using the operator specific in the constructor. |
java.lang.String |
toString()
Returns something useful, like "f = field_id op = op_string operand = operand_string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Predicate(int field,
Predicate.Op op,
Field operand)
field - field number of passed in tuples to compare against.op - operation to use for comparisonoperand - field value to compare passed in tuples to| Method Detail |
|---|
public boolean filter(Tuple t)
t - The tuple to compare against
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||