java.lang.Object
java.lang.Enum<Geo>
org.apache.tinkerpop.gremlin.process.traversal.Geo
All Implemented Interfaces:
Serializable, Comparable<Geo>, Constable, BiPredicate<Object,Object>, PBiPredicate<Object,Object>

public enum Geo extends Enum<Geo> implements 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
  • Enum Constant Details

    • geoWithin

      public static final Geo geoWithin
      Evaluates if the value lies entirely inside the argument.
      Since:
      4.0.0
    • geoContains

      public static final Geo geoContains
      Evaluates if the value entirely contains the argument.
      Since:
      4.0.0
  • Method Details

    • values

      public static Geo[] 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

      public static Geo valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • test

      public abstract boolean test(Object value, Object argument)
      Specified by:
      test in interface BiPredicate<Object,Object>