/** * Does the query and returns a set, the necessary info is given as a java * instance. * This implementation delegates the work to the underlying [real] query. */ public Set query (final Object o) throws QueryException { final QueryItem qi = fetch(); return qi.query(o); }
public Set query (final Object o) throws QueryException { if (getChildren() == null || getChildren().size() < 1) return null; Set result = null; final java.util.Iterator it = getChildren().iterator(); while (it.hasNext()) { final QueryItem qi = (QueryItem)it.next(); if (result == null) result = qi.query(o); else result = SetUtils.doUnion(result, qi.query(o)); } return result; }
public Set query (final Object o) throws QueryException { if (getChildren() == null || getChildren().size() < 1) return null; Set result = null; final java.util.Iterator it = getChildren().iterator(); while (it.hasNext()) { final QueryItem qi = (QueryItem)it.next(); if (result == null) result = qi.query(o); else result = SetUtils.doIntersection(result, qi.query(o)); if (result.isEmpty()) break; } return result; }
public Set query (final Object o) throws QueryException { if (getChild() == null) return null; final Set result = getChild().query(o); result.invert(); return result; }