isql.predicate
Class OrPredicate
java.lang.Object
isql.predicate.OrPredicate
- All Implemented Interfaces:
- IPredicate
public class OrPredicate
- extends java.lang.Object
- implements IPredicate
It is builds a view resulting from the "OR" of two predicates in the WHERE clause
- Author:
- SHZ Oct 18, 2007
Method Summary |
WhereView |
apply()
Returns, for each involved column, the indices (possibly repeated) of the table rows
that are connected by the predicate. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OrPredicate
public OrPredicate(java.util.List<IPredicate> lstPredicate,
ColumnValues values)
apply
public WhereView apply()
throws ISQLException
- Description copied from interface:
IPredicate
- Returns, for each involved column, the indices (possibly repeated) of the table rows
that are connected by the predicate.
In practice it returns a view that consists of the table rows of the involved tables
put together depending by the predicate.
For example a C1 = C2 operator will put together all the table rows for which the
columns C1 and C2 are equal, and discard the others
- Specified by:
apply
in interface IPredicate
- Returns:
- map table name -> indices of the rows that the predicate connects (possibly repeated).
- Throws:
ISQLException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object