Spring Data Document

org.springframework.data.document.mongodb.index
Annotation Type GeoSpatialIndexed


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface GeoSpatialIndexed

Mark a field to be indexed using MongoDB's geospatial indexing feature.

Author:
Jon Brisbin

Optional Element Summary
 int bits
          Bits of precision for boundary calculations.
 String collection
          Name of the collection in which to create the index.
 int max
          Maximum value for indexed values.
 int min
          Minimum value for indexed values.
 String name
          Name of the property in the document that contains the [x, y] or radial coordinates to index.
 

name

public abstract String name
Name of the property in the document that contains the [x, y] or radial coordinates to index.

Returns:
Default:
""

collection

public abstract String collection
Name of the collection in which to create the index.

Returns:
Default:
""

min

public abstract int min
Minimum value for indexed values.

Returns:
Default:
-180

max

public abstract int max
Maximum value for indexed values.

Returns:
Default:
180

bits

public abstract int bits
Bits of precision for boundary calculations.

Returns:
Default:
26

Spring Data Document

Copyright © 2011. All Rights Reserved.