Interface IndexOperationsProvider
- All Known Implementing Classes:
MongoTemplate
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provider interface to obtain
IndexOperations
by MongoDB collection name.- Since:
- 2.0
- Author:
- Mark Paluch, Jens Schauder
-
Method Summary
Modifier and TypeMethodDescriptiondefault IndexOperations
Returns the operations that can be performed on indexes.Returns the operations that can be performed on indexes.
-
Method Details
-
indexOps
Returns the operations that can be performed on indexes.- Parameters:
collectionName
- name of the MongoDB collection, must not be null.- Returns:
- index operations on the named collection
-
indexOps
Returns the operations that can be performed on indexes.- Parameters:
collectionName
- name of the MongoDB collection, must not be null.type
- the type used for field mapping. Can be null.- Returns:
- index operations on the named collection
- Since:
- 3.2
-