|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mongodb.core.index.Index
public class Index
| Nested Class Summary | |
|---|---|
static class |
Index.Duplicates
|
| Constructor Summary | |
|---|---|
Index()
|
|
Index(String key,
Order order)
Deprecated. use #Index(String, Direction) instead. |
|
Index(String key,
Sort.Direction direction)
|
|
| Method Summary | |
|---|---|
com.mongodb.DBObject |
getIndexKeys()
|
com.mongodb.DBObject |
getIndexOptions()
|
Index |
named(String name)
|
Index |
on(String key,
Order order)
Deprecated. use #on(String, Direction) instead. |
Index |
on(String key,
Sort.Direction direction)
|
Index |
sparse()
Skip over any document that is missing the indexed field. |
String |
toString()
|
Index |
unique()
Reject all documents that contain a duplicate value for the indexed field. |
Index |
unique(Index.Duplicates duplicates)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Index()
public Index(String key,
Sort.Direction direction)
@Deprecated
public Index(String key,
Order order)
#Index(String, Direction) instead.
Indexed on the given key and Order.
key - must not be null or empty.order - must not be null.| Method Detail |
|---|
@Deprecated
public Index on(String key,
Order order)
#on(String, Direction) instead.
key - must not be null or empty.order - must not be null.
public Index on(String key,
Sort.Direction direction)
public Index named(String name)
public Index unique()
http://docs.mongodb.org/manual/core/index-unique/public Index sparse()
http://docs.mongodb.org/manual/core/index-sparse/public Index unique(Index.Duplicates duplicates)
duplicates -
http://docs.mongodb.org/manual/core/index-creation/#index-creation-duplicate-droppingpublic com.mongodb.DBObject getIndexKeys()
getIndexKeys in interface IndexDefinitionpublic com.mongodb.DBObject getIndexOptions()
getIndexOptions in interface IndexDefinitionpublic String toString()
toString in class Object
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||