@Target(value=TYPE) @Documented @Retention(value=RUNTIME) public @interface CompoundIndex
Modifier and Type | Required Element and Description |
---|---|
String |
def
The actual index definition in JSON format.
|
Modifier and Type | Optional Element and Description |
---|---|
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 |
boolean |
unique |
public abstract String def
@Deprecated public abstract IndexDirection direction
def()
attribute actually.public abstract boolean unique
public abstract boolean sparse
public abstract boolean dropDups
public abstract String name
public abstract String collection
public abstract boolean background
http://docs.mongodb.org/manual/core/indexes/#background-construction
public abstract int expireAfterSeconds
http://docs.mongodb.org/manual/tutorial/expire-data/
Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.