Package com.orientechnologies.orient.core.command

Examples of com.orientechnologies.orient.core.command.OCommandPredicate


  }

  @Test
  public void traverseAPIIterating() {
    int cycles = 0;
    for (OIdentifiable id : new OTraverse().target(database.browseClass("Movie").iterator()).predicate(new OCommandPredicate() {
      @Override
      public Object evaluate(ORecord iRecord, ODocument iCurrentResult, OCommandContext iContext) {
        return ((Integer) iContext.getVariable("depth")) <= 2;
      }
    })) {
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.command.OCommandPredicate

Copyright © 2018 www.massapicom. 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.