Class CompoundIndexDefinition
java.lang.Object
org.springframework.data.mongodb.core.index.Index
org.springframework.data.mongodb.core.index.CompoundIndexDefinition
- All Implemented Interfaces:
IndexDefinition
Index definition to span multiple keys.
- Since:
- 1.5
- Author:
- Christoph Strobl
-
Constructor Summary
ConstructorDescriptionCompoundIndexDefinition
(org.bson.Document keys) Creates a newCompoundIndexDefinition
for the given keys. -
Method Summary
Modifier and TypeMethodDescriptionorg.bson.Document
Get theDocument
containing properties covered by the index.
-
Constructor Details
-
CompoundIndexDefinition
public CompoundIndexDefinition(org.bson.Document keys) Creates a newCompoundIndexDefinition
for the given keys.- Parameters:
keys
- must not be null.
-
-
Method Details
-
getIndexKeys
public org.bson.Document getIndexKeys()Description copied from interface:IndexDefinition
Get theDocument
containing properties covered by the index.- Specified by:
getIndexKeys
in interfaceIndexDefinition
- Overrides:
getIndexKeys
in classIndex
- Returns:
- never null.
-