QueryUtil or
use the QueryUtil.createMatchQuery(String, Object...)
to create a custom expression based query. If the query cannot be expressed using
the p2QL, then use a predefined or custom expression query as a first filter
(in worst case, use QueryUtil.createIUAnyQuery()) and then provide further filtering
like so:
for(iter = queryable.query(someExpressionQuery).iterator(); iter.hasNext();) {
// do your match here
}public interface IMatchQuery<T> extends IQuery<T>
isMatch(Object) is mutually
exclusive from all other calls. | Modifier and Type | Method and Description |
|---|---|
boolean |
isMatch(T candidate)
Deprecated.
Returns whether the given object satisfies the parameters of this query.
|
getExpression, performboolean isMatch(T candidate)
candidate - The object to perform the query againsttrue if the unit satisfies the parameters
of this query, and false otherwise