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
ConstructorDescriptionIndexDefinitionHolder
(String path, IndexDefinition definition, String collection) Create -
Method Summary
Modifier and TypeMethodDescriptionGet the rawIndexDefinition
.org.bson.Document
Get theDocument
containing properties covered by the index.org.bson.Document
Get 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:IndexDefinition
Get theDocument
containing properties covered by the index.- Specified by:
getIndexKeys
in interfaceIndexDefinition
- Returns:
- never null.
-
getIndexOptions
public org.bson.Document getIndexOptions()Description copied from interface:IndexDefinition
Get the index properties such as unique,...- Specified by:
getIndexOptions
in interfaceIndexDefinition
- Returns:
- never null.
-
toString
-