public class DefaultReactiveIndexOperations extends Object implements ReactiveIndexOperations
ReactiveIndexOperations.| Constructor and Description |
|---|
DefaultReactiveIndexOperations(ReactiveMongoOperations mongoOperations,
String collectionName,
QueryMapper queryMapper)
Creates a new
DefaultReactiveIndexOperations. |
DefaultReactiveIndexOperations(ReactiveMongoOperations mongoOperations,
String collectionName,
QueryMapper queryMapper,
Class<?> type)
Creates a new
DefaultReactiveIndexOperations. |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
dropAllIndexes()
Drops all indices from this collection.
|
reactor.core.publisher.Mono<Void> |
dropIndex(String name)
Drops an index from this collection.
|
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. |
reactor.core.publisher.Flux<IndexInfo> |
getIndexInfo()
Returns the index information on the collection.
|
public DefaultReactiveIndexOperations(ReactiveMongoOperations mongoOperations, String collectionName, QueryMapper queryMapper)
DefaultReactiveIndexOperations.mongoOperations - must not be null.collectionName - must not be null.queryMapper - must not be null.public DefaultReactiveIndexOperations(ReactiveMongoOperations mongoOperations, String collectionName, QueryMapper queryMapper, Class<?> type)
DefaultReactiveIndexOperations.mongoOperations - must not be null.collectionName - must not be null.queryMapper - must not be null.type - used for mapping potential partial index filter expression, must not be null.public reactor.core.publisher.Mono<String> ensureIndex(IndexDefinition indexDefinition)
ReactiveIndexOperationsIndexDefinition exists for the collection indicated by the entity
class. If not it will be created.ensureIndex in interface ReactiveIndexOperationsindexDefinition - must not be null.public reactor.core.publisher.Mono<Void> dropIndex(String name)
ReactiveIndexOperationsdropIndex in interface ReactiveIndexOperationsname - name of index to droppublic reactor.core.publisher.Mono<Void> dropAllIndexes()
ReactiveIndexOperationsdropAllIndexes in interface ReactiveIndexOperationspublic reactor.core.publisher.Flux<IndexInfo> getIndexInfo()
ReactiveIndexOperationsgetIndexInfo in interface ReactiveIndexOperationsCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.