public enum GeospatialOperator extends Enum<GeospatialOperator> implements Operator
Enum Constant and Description |
---|
GEO_WITHIN
Operator to return documents that are within a GeoJSON shape.
|
INTERSECT
Operator to return documents that intersect the GeoJSON shape.
|
MAX_DISTANCE_MODIFIER
The modifier for the
NEAR operator to limit the documents
returned based on their distance from the the center point. |
NEAR
Operator to return documents near a given point.
|
NEAR_SPHERE
Operator to return documents near a given point.
|
WITHIN
Operator to return documents within a bounding shape.
|
Modifier and Type | Field and Description |
---|---|
static String |
BOX
The name for the rectangular region with a
WITHIN query. |
static String |
CIRCLE
The name for the circular region with a
WITHIN query. |
static String |
GEOMETRY
The name for the GeoJSON region with a
INTERSECT query. |
static String |
POLYGON
The name for the polygon region with a
WITHIN query. |
static String |
SPHERICAL_CIRCLE
The name for the circular region on a sphere with a
WITHIN
query. |
static String |
UNIQUE_DOCS_MODIFIER
The modifier for the
WITHIN operator to determine if duplicate
documents should be returned. |
Modifier and Type | Method and Description |
---|---|
String |
getToken()
The token for the operator that can be sent to the server.
|
static GeospatialOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GeospatialOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GeospatialOperator GEO_WITHIN
public static final GeospatialOperator INTERSECT
public static final GeospatialOperator MAX_DISTANCE_MODIFIER
NEAR
operator to limit the documents
returned based on their distance from the the center point.public static final GeospatialOperator NEAR
public static final GeospatialOperator NEAR_SPHERE
public static final GeospatialOperator WITHIN
public static final String BOX
WITHIN
query.public static final String CIRCLE
WITHIN
query.public static final String GEOMETRY
INTERSECT
query.public static final String POLYGON
WITHIN
query.public static final String SPHERICAL_CIRCLE
WITHIN
query.public static final String UNIQUE_DOCS_MODIFIER
WITHIN
operator to determine if duplicate
documents should be returned.public static GeospatialOperator[] values()
for (GeospatialOperator c : GeospatialOperator.values()) System.out.println(c);
public static GeospatialOperator 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 nullCopyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.