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.

@FunctionalInterface public interface IndexOperationsProvider
Provider interface to obtain IndexOperations by MongoDB collection name.
Since:
2.0
Author:
Mark Paluch, Jens Schauder
  • Method Summary

    Modifier and Type
    Method
    Description
    indexOps(String collectionName)
    Returns the operations that can be performed on indexes.
    indexOps(String collectionName, Class<?> type)
    Returns the operations that can be performed on indexes.
  • Method Details

    • indexOps

      default IndexOperations indexOps(String collectionName)
      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

      IndexOperations indexOps(String collectionName, @Nullable Class<?> type)
      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