Module spring.data.mongodb
Class MongoPersistentEntityIndexResolver.IndexDefinitionHolder
java.lang.Object
org.springframework.data.mongodb.core.index.MongoPersistentEntityIndexResolver.IndexDefinitionHolder
- All Implemented Interfaces:
IndexDefinition
- Enclosing class:
- MongoPersistentEntityIndexResolver
public static class MongoPersistentEntityIndexResolver.IndexDefinitionHolder
extends Object
implements IndexDefinition
Implementation of
IndexDefinition holding additional (property)path information used for creating the
index. The path itself is the properties "dot" path representation from its root document.- Since:
- 1.5
- Author:
- Christoph Strobl
-
Constructor Summary
ConstructorsConstructorDescriptionIndexDefinitionHolder(String path, IndexDefinition definition, String collection) Create -
Method Summary
Modifier and TypeMethodDescriptionGet the rawIndexDefinition.org.bson.DocumentGet theDocumentcontaining properties covered by the index.org.bson.DocumentGet the index properties such as unique,...getPath()Get the "dot" path used to create the index.toString()
-
Constructor Details
-
IndexDefinitionHolder
Create- Parameters:
path-
-
-
Method Details
-
getCollection
-
getPath
Get the "dot" path used to create the index.- Returns:
-
getIndexDefinition
Get the rawIndexDefinition.- Returns:
-
getIndexKeys
public org.bson.Document getIndexKeys()Description copied from interface:IndexDefinitionGet theDocumentcontaining properties covered by the index.- Specified by:
getIndexKeysin interfaceIndexDefinition- Returns:
- never null.
-
getIndexOptions
public org.bson.Document getIndexOptions()Description copied from interface:IndexDefinitionGet the index properties such as unique,...- Specified by:
getIndexOptionsin interfaceIndexDefinition- Returns:
- never null.
-
toString
-