org.springframework.data.document.mongodb.query
Class Index
java.lang.Object
org.springframework.data.document.mongodb.query.Index
- All Implemented Interfaces:
- IndexDefinition
public class Index
- extends java.lang.Object
- implements IndexDefinition
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
fieldSpec
private java.util.Map<java.lang.String,Order> fieldSpec
name
private java.lang.String name
unique
private boolean unique
dropDuplicates
private boolean dropDuplicates
sparse
private boolean sparse
Index
public Index()
Index
public Index(java.lang.String key,
Order order)
on
public Index on(java.lang.String key,
Order order)
named
public Index named(java.lang.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 java.lang.String toString()
- Overrides:
toString
in class java.lang.Object