public interface IndexOperations
| Modifier and Type | Method and Description |
|---|---|
void |
dropAllIndexes()
Drops all indices from this collection.
|
void |
dropIndex(String name)
Drops an index from this collection.
|
String |
ensureIndex(IndexDefinition indexDefinition)
Ensure that an index for the provided
IndexDefinition exists for the collection indicated by the entity
class. |
List<IndexInfo> |
getIndexInfo()
Returns the index information on the collection.
|
String ensureIndex(IndexDefinition indexDefinition)
IndexDefinition exists for the collection indicated by the entity
class. If not it will be created.indexDefinition - must not be null.void dropIndex(String name)
name - name of index to dropvoid dropAllIndexes()
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.