org.springframework.data.mongodb.core.index

Interface ReactiveIndexOperations

  • All Known Implementing Classes:
    DefaultReactiveIndexOperations


    public interface ReactiveIndexOperations
    Index operations on a collection.
    Since:
    2.0
    Author:
    Mark Paluch, Christoph Strobl
    • Method Detail

      • ensureIndex

        reactor.core.publisher.Mono<String> ensureIndex(IndexDefinition indexDefinition)
        Ensure that an index for the provided IndexDefinition exists for the collection indicated by the entity class. If not it will be created.
        Parameters:
        indexDefinition - must not be null.
      • dropIndex

        reactor.core.publisher.Mono<Void> dropIndex(String name)
        Drops an index from this collection.
        Parameters:
        name - name of index to drop
      • dropAllIndexes

        reactor.core.publisher.Mono<Void> dropAllIndexes()
        Drops all indices from this collection.
      • getIndexInfo

        reactor.core.publisher.Flux<IndexInfo> getIndexInfo()
        Returns the index information on the collection.
        Returns:
        index information on the collection