@Documented @Inherited @Retention(value=RUNTIME) @Target(value=ANNOTATION_TYPE) public @interface IndexOptions
Modifier and Type | Optional Element and Description |
---|---|
boolean |
background
Create the index in the background
|
boolean |
disableValidation
disables validation for the field name
|
boolean |
dropDups
Tells the unique index to drop duplicates silently when creating; only the first will be kept
|
int |
expireAfterSeconds
defines the time to live for documents in the collection
|
String |
language
Default language for the index.
|
String |
languageOverride
The field to use to override the default language.
|
String |
name
The name of the index to create; default is to let the mongodb create a name (in the form of key1_1/-1_key2_1/-1...)
|
boolean |
sparse
Create the index with the sparse option
|
boolean |
unique
Creates the index as a unique value index; inserting duplicates values in this field will cause errors
|
public abstract String name
public abstract boolean unique
public abstract boolean dropDups
public abstract boolean disableValidation
public abstract int expireAfterSeconds
public abstract String language
public abstract String languageOverride
Copyright © 2016. All rights reserved.