public enum Geo extends Enum<Geo> implements TitanPredicate
TitanPredicate.Converter| Enum Constant and Description |
|---|
DISJOINT
Whether the intersection between two geographic regions is empty
|
INTERSECT
Whether the intersection between two geographic regions is non-empty
|
WITHIN
Whether one geographic region is completely contains within another
|
| Modifier and Type | Method and Description |
|---|---|
static <V> org.apache.tinkerpop.gremlin.process.traversal.P<V> |
geoDisjoint(V value) |
static <V> org.apache.tinkerpop.gremlin.process.traversal.P<V> |
geoIntersect(V value) |
static <V> org.apache.tinkerpop.gremlin.process.traversal.P<V> |
geoWithin(V value) |
boolean |
isQNF()
Returns true if this predicate is in query normal form.
|
boolean |
isValidCondition(Object condition)
Whether the given condition is a valid condition for this predicate.
|
boolean |
isValidValueType(Class<?> clazz)
Whether the given class is a valid data type for a value to which this predicate may be applied.
|
static Geo |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Geo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfhasNegation, negate, testand, orpublic static final Geo INTERSECT
public static final Geo DISJOINT
public static final Geo WITHIN
public static Geo[] values()
for (Geo c : Geo.values()) System.out.println(c);
public static Geo valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isValidCondition(Object condition)
TitanPredicateCmp.GREATER_THAN would require that the condition is comparable and not null.isValidCondition in interface TitanPredicatepublic boolean isValidValueType(Class<?> clazz)
TitanPredicateCmp.GREATER_THAN can only be applied to Comparable values.isValidValueType in interface TitanPredicatepublic boolean isQNF()
TitanPredicateisQNF in interface TitanPredicatepublic static <V> org.apache.tinkerpop.gremlin.process.traversal.P<V> geoIntersect(V value)
public static <V> org.apache.tinkerpop.gremlin.process.traversal.P<V> geoDisjoint(V value)
public static <V> org.apache.tinkerpop.gremlin.process.traversal.P<V> geoWithin(V value)
Copyright © 2012–2015. All rights reserved.