Spring Data MongoDB - Core

org.springframework.data.mongodb.core.index
Enum GeoSpatialIndexType

java.lang.Object
  extended by java.lang.Enum<GeoSpatialIndexType>
      extended by org.springframework.data.mongodb.core.index.GeoSpatialIndexType
All Implemented Interfaces:
Serializable, Comparable<GeoSpatialIndexType>

public enum GeoSpatialIndexType
extends Enum<GeoSpatialIndexType>

Geoposatial index type.

Since:
1.4
Author:
Laurent Canet, Oliver Gierke

Enum Constant Summary
GEO_2D
          Simple 2-Dimensional index for legacy-format points.
GEO_2DSPHERE
          2D Index for GeoJSON-formatted data over a sphere.
GEO_HAYSTACK
          An haystack index for grouping results over small results.
 
Method Summary
static GeoSpatialIndexType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GeoSpatialIndexType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GEO_2D

public static final GeoSpatialIndexType GEO_2D
Simple 2-Dimensional index for legacy-format points.


GEO_2DSPHERE

public static final GeoSpatialIndexType GEO_2DSPHERE
2D Index for GeoJSON-formatted data over a sphere. Only available in Mongo 2.4.


GEO_HAYSTACK

public static final GeoSpatialIndexType GEO_HAYSTACK
An haystack index for grouping results over small results.

Method Detail

values

public static GeoSpatialIndexType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (GeoSpatialIndexType c : GeoSpatialIndexType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static GeoSpatialIndexType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null

Spring Data MongoDB - Core

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.