Package com.orientechnologies.orient.core.sql.filter

Examples of com.orientechnologies.orient.core.sql.filter.OSQLFilterCondition.evaluate()


      final Collection<Object> collection = (Collection<Object>) iLeft;

      if (condition != null) {
        // CHECK AGAINST A CONDITION
        for (Object o : collection) {
          if ((Boolean) condition.evaluate((ORecordSchemaAware<?>) o) == Boolean.TRUE)
            return true;
        }
      } else {
        // CHECK AGAINST A SINGLE VALUE
        for (Object o : collection) {
View Full Code Here


      // CHECK AGAINST A CONDITION
      final Collection<ORecordSchemaAware<?>> collection = (Collection<ORecordSchemaAware<?>>) iRight;

      if (condition != null) {
        for (ORecordSchemaAware<?> o : collection) {
          if ((Boolean) condition.evaluate(o) == Boolean.TRUE)
            return true;
        }
      } else {
        // CHECK AGAINST A SINGLE VALUE
        for (Object o : collection) {
View Full Code Here

      final Collection<ODocument> collection = (Collection<ODocument>) iLeft;

      if (condition != null) {
        // CHECK AGAINST A CONDITION
        for (final ODocument o : collection) {
          if ((Boolean) condition.evaluate(o, null, iContext) == Boolean.FALSE)
            return false;
        }
      } else {
        // CHECK AGAINST A SINGLE VALUE
        for (final Object o : collection) {
View Full Code Here

      // CHECK AGAINST A CONDITION
      final Collection<ODocument> collection = (Collection<ODocument>) iRight;

      if (condition != null) {
        for (final ODocument o : collection) {
          if ((Boolean) condition.evaluate(o, null, iContext) == Boolean.FALSE)
            return false;
        }
      } else {
        // CHECK AGAINST A SINGLE VALUE
        for (final Object o : collection) {
View Full Code Here

            final Iterator<OIdentifiable> iter = ((Iterable<OIdentifiable>) o).iterator();
            id = iter.hasNext() ? iter.next() : null;
          } else
            continue;

          if ((Boolean) condition.evaluate(id, null, iContext) == Boolean.TRUE)
            return true;
        }
      } else {
        // CHECK AGAINST A SINGLE VALUE
        for (final Object o : iterable) {
View Full Code Here

      // CHECK AGAINST A CONDITION
      final Iterable<OIdentifiable> iterable = (Iterable<OIdentifiable>) iRight;

      if (condition != null) {
        for (final OIdentifiable o : iterable) {
          if ((Boolean) condition.evaluate(o, null, iContext) == Boolean.TRUE)
            return true;
        }
      } else {
        // CHECK AGAINST A SINGLE VALUE
        for (final Object o : iterable) {
View Full Code Here

      if (condition != null) {
        // CHECK AGAINST A CONDITION
        for (Object o : map.values()) {
          o = loadIfNeed(o);
          if ((Boolean) condition.evaluate((ODocument) o, null, iContext))
            return true;
        }
      } else
        return map.containsValue(iRight);
View Full Code Here

      if (condition != null)
        // CHECK AGAINST A CONDITION
        for (Object o : map.values()) {
          o = loadIfNeed(o);
          if ((Boolean) condition.evaluate((ODocument) o, null, iContext))
            return true;
          else
            return map.containsValue(iLeft);
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.