Interface ReactiveIndexOperations
- All Known Implementing Classes:
DefaultReactiveIndexOperations
public interface ReactiveIndexOperations
Index operations on a collection.
- Since:
- 2.0
- Author:
- Mark Paluch, Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionalterIndex
(String name, IndexOptions options) Alters the index with given name.createIndex
(IndexDefinition indexDefinition) Create the index for the providedIndexDefinition
exists for the collection indicated by the entity class.Drops all indices from this collection.Drops an index from this collection.ensureIndex
(IndexDefinition indexDefinition) Deprecated, for removal: This API element is subject to removal in a future version.Returns the index information on the collection.
-
Method Details
-
ensureIndex
Deprecated, for removal: This API element is subject to removal in a future version.since 4.5, in favor ofcreateIndex(IndexDefinition)
.Ensure that an index for the providedIndexDefinition
exists for the collection indicated by the entity class. If not it will be created.- Parameters:
indexDefinition
- must not be null.- Returns:
- a
Mono
emitting the name of the index on completion.
-
createIndex
Create the index for the providedIndexDefinition
exists for the collection indicated by the entity class. If not it will be created.- Parameters:
indexDefinition
- must not be null.- Returns:
- the index name.
- Since:
- 4.5
-
alterIndex
Alters the index with given name.- Parameters:
name
- name of index to change.options
- index options.- Since:
- 4.1
-
dropIndex
Drops an index from this collection.- Parameters:
name
- name of index to drop
-
dropAllIndexes
Drops all indices from this collection. -
getIndexInfo
Returns the index information on the collection.- Returns:
- index information on the collection
-
createIndex(IndexDefinition)
.