Enum Class GeoSpatialIndexType
- All Implemented Interfaces:
Serializable
,Comparable<GeoSpatialIndexType>
,Constable
Geoposatial index type.
- Since:
- 1.4
- Author:
- Laurent Canet, Oliver Gierke
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSimple 2-Dimensional index for legacy-format points.2D Index for GeoJSON-formatted data over a sphere.An haystack index for grouping results over small results. -
Method Summary
Modifier and TypeMethodDescriptionstatic GeoSpatialIndexType
Returns the enum constant of this class with the specified name.static GeoSpatialIndexType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GEO_2D
Simple 2-Dimensional index for legacy-format points. -
GEO_2DSPHERE
2D Index for GeoJSON-formatted data over a sphere. Only available in Mongo 2.4. -
GEO_HAYSTACK
An haystack index for grouping results over small results.
-
-
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
-