Module spring.data.mongodb
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
ConstructorsConstructorDescriptionCompoundIndexDefinition(org.bson.Document keys) Creates a newCompoundIndexDefinitionfor the given keys. -
Method Summary
Modifier and TypeMethodDescriptionorg.bson.DocumentGet theDocumentcontaining properties covered by the index.
-
Constructor Details
-
CompoundIndexDefinition
public CompoundIndexDefinition(org.bson.Document keys) Creates a newCompoundIndexDefinitionfor the given keys.- Parameters:
keys- must not be null.
-
-
Method Details
-
getIndexKeys
public org.bson.Document getIndexKeys()Description copied from interface:IndexDefinitionGet theDocumentcontaining properties covered by the index.- Specified by:
getIndexKeysin interfaceIndexDefinition- Overrides:
getIndexKeysin classIndex- Returns:
- never null.
-