org.springframework.data.mongodb.core.index
Class Index
java.lang.Object
org.springframework.data.mongodb.core.index.Index
- All Implemented Interfaces:
- IndexDefinition
public class Index
- extends Object
- implements IndexDefinition
Index
public Index()
Index
public Index(String key,
Order order)
on
public Index on(String key,
Order order)
named
public Index named(String name)
unique
public Index unique()
sparse
public Index sparse()
unique
public Index unique(Index.Duplicates duplicates)
getIndexKeys
public DBObject getIndexKeys()
- Specified by:
getIndexKeys
in interface IndexDefinition
getIndexOptions
public DBObject getIndexOptions()
- Specified by:
getIndexOptions
in interface IndexDefinition
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012. All Rights Reserved.