public class GeospatialIndex extends Object implements IndexDefinition
| Constructor and Description |
|---|
GeospatialIndex(String field)
Creates a new
GeospatialIndex for the given field. |
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.DBObject |
getIndexKeys() |
com.mongodb.DBObject |
getIndexOptions() |
GeospatialIndex |
named(String name) |
String |
toString() |
GeospatialIndex |
withBits(int bits) |
GeospatialIndex |
withMax(int max) |
GeospatialIndex |
withMin(int min) |
public GeospatialIndex(String field)
GeospatialIndex for the given field.field - must not be empty or null.public GeospatialIndex named(String name)
public GeospatialIndex withMin(int min)
public GeospatialIndex withMax(int max)
public GeospatialIndex withBits(int bits)
public com.mongodb.DBObject getIndexKeys()
getIndexKeys in interface IndexDefinitionpublic com.mongodb.DBObject getIndexOptions()
getIndexOptions in interface IndexDefinitionCopyright © 2011-2013-2013 SpringSource. All Rights Reserved.