public enum Geo extends Enum<Geo> implements JanusGraphPredicate
Enum Constant and Description |
---|
CONTAINS
Whether one geographic region completely contains another
|
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 within another
|
Modifier and Type | Method and Description |
---|---|
static <V> JanusGraphP |
geoContains(V value) |
static <V> JanusGraphP |
geoDisjoint(V value) |
static <V> JanusGraphP |
geoIntersect(V value) |
static <V> JanusGraphP |
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, valueOf
hasNegation, negate, test
getPredicateName
and, or
public static final Geo INTERSECT
public static final Geo DISJOINT
public static final Geo WITHIN
public static final Geo CONTAINS
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)
JanusGraphPredicate
For instance, the Cmp.GREATER_THAN
would require that the condition is comparable and not null.
isValidCondition
in interface JanusGraphPredicate
public boolean isValidValueType(Class<?> clazz)
JanusGraphPredicate
For instance, the Cmp.GREATER_THAN
can only be applied to Comparable
values.
isValidValueType
in interface JanusGraphPredicate
public boolean isQNF()
JanusGraphPredicate
isQNF
in interface JanusGraphPredicate
public static <V> JanusGraphP geoIntersect(V value)
public static <V> JanusGraphP geoDisjoint(V value)
public static <V> JanusGraphP geoWithin(V value)
public static <V> JanusGraphP geoContains(V value)
Copyright © 2012–2023. All rights reserved.