Package com.thinkaurelius.titan.graphdb.query.keycondition

Examples of com.thinkaurelius.titan.graphdb.query.keycondition.Relation


  private String getQueryString(String family, KeyCondition<String> condition) {
    if (condition instanceof KeyAtom) {
      KeyAtom<String> atom = (KeyAtom<String>) condition;
      Object value = atom.getCondition();
      String key = atom.getKey();
      Relation relation = atom.getRelation();
      if (value instanceof Number || value instanceof Interval) {
        Preconditions.checkArgument(relation instanceof Cmp, "Relation not supported on numeric types: " + relation);
        if (relation == Cmp.INTERVAL) {
          Preconditions.checkArgument(value instanceof Interval && ((Interval<?>) value).getStart() instanceof Number);
          Interval<?> i = (Interval<?>) value;
View Full Code Here

TOP

Related Classes of com.thinkaurelius.titan.graphdb.query.keycondition.Relation

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.