|
Spring Data MongoDB | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mongodb.core.DefaultIndexOperations
public class DefaultIndexOperations
Default implementation of IndexOperations.
| Constructor Summary | |
|---|---|
DefaultIndexOperations(MongoOperations mongoOperations,
String collectionName)
Creates a new DefaultIndexOperations. |
|
| Method Summary | |
|---|---|
void |
dropAllIndexes()
Drops all indices from this collection. |
void |
dropIndex(String name)
Drops an index from this collection. |
void |
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. |
void |
resetIndexCache()
Clears all indices that have not yet been applied to this collection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultIndexOperations(MongoOperations mongoOperations,
String collectionName)
DefaultIndexOperations.
mongoOperations - must not be null.collectionName - must not be null.| Method Detail |
|---|
public void ensureIndex(IndexDefinition indexDefinition)
IndexOperationsIndexDefinition exists for the collection indicated by the entity
class. If not it will be created.
ensureIndex in interface IndexOperationsindexDefinition - must not be null.public void dropIndex(String name)
IndexOperations
dropIndex in interface IndexOperationsname - name of index to droppublic void dropAllIndexes()
IndexOperations
dropAllIndexes in interface IndexOperationspublic void resetIndexCache()
IndexOperations
resetIndexCache in interface IndexOperationspublic List<IndexInfo> getIndexInfo()
IndexOperations
getIndexInfo in interface IndexOperations
|
Spring Data MongoDB | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||