Enum Class Geo
- All Implemented Interfaces:
Serializable,Comparable<Geo>,Constable,BiPredicate<Object,,Object> PBiPredicate<Object,Object>
Geo is a BiPredicate that evaluates a spatial relationship between a geometry
value and the argument of a GeoP. A provider strategy that recognizes one of these
values on a HasContainer can answer the filter from a spatial index instead.
A value that cannot be compared is false rather than an error: a value that is not a
geometry, a null, an empty geometry, a value whose SRID differs from the argument's, and a value
in a coordinate system other than CARTESIAN or GEOGRAPHIC. All math is 2D, so z
is ignored.
Accuracy in the geographic model is described on GeoP.
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEvaluates if the value entirely contains the argument.Evaluates if the value lies entirely inside the argument. -
Method Summary
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface java.util.function.BiPredicate
and, negate, orMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.PBiPredicate
getPredicateName
-
Enum Constant Details
-
geoWithin
Evaluates if the value lies entirely inside the argument.- Since:
- 4.0.0
-
geoContains
Evaluates if the value entirely contains the argument.- Since:
- 4.0.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
test
- Specified by:
testin interfaceBiPredicate<Object,Object>
-