|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=TYPE) @Documented @Retention(value=RUNTIME) public @interface CompoundIndex
Mark a class to use compound indexes.
| Required Element Summary | |
|---|---|
String |
def
The actual index definition in JSON format. |
| Optional Element Summary | |
|---|---|
boolean |
background
If true the index will be created in the background. |
String |
collection
The collection the index will be created in. |
IndexDirection |
direction
Deprecated. |
boolean |
dropDups
|
int |
expireAfterSeconds
Configures the number of seconds after which the collection should expire. |
String |
name
The name of the index to be created. |
boolean |
sparse
If set to true index will skip over any document that is missing the indexed field. |
boolean |
unique
|
| Element Detail |
|---|
public abstract String def
@Deprecated public abstract IndexDirection direction
def()
attribute actually.
public abstract boolean unique
http://docs.mongodb.org/manual/core/index-unique/public abstract boolean sparse
http://docs.mongodb.org/manual/core/index-sparse/public abstract boolean dropDups
http://docs.mongodb.org/manual/core/index-creation/#index-creation-duplicate-droppingpublic abstract String name
public abstract String collection
public abstract boolean background
http://docs.mongodb.org/manual/core/indexes/#background-constructionpublic abstract int expireAfterSeconds
http://docs.mongodb.org/manual/tutorial/expire-data/
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||