Package com.atlassian.jira.sharing.index
Class MockSharedEntityIndexer
java.lang.Object
com.atlassian.jira.sharing.index.MockSharedEntityIndexer
- All Implemented Interfaces:
SharedEntityIndexer
- Since:
- v3.13
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclear(SharedEntity.TypeDescriptor<?> type) Clear a particular type's index.deIndex(SharedEntity entity) Delete a document from the index.deIndex(Set<SharedEntity> sharedEntities, boolean shouldReplicate) Delete multiple documents in the indexindex(SharedEntity entity) Add or update a document in the index.index(SharedEntity entity, boolean shouldReplicate) Add or update a document in the index.index(Set<SharedEntity> sharedEntities, boolean shouldReplicate) Add or update multiple documents in the indexlongoptimize(SharedEntity.TypeDescriptor<?> type) Optimize a particular type's index.voidrecreate(SharedEntity.TypeDescriptor<?> type) Recreate the index.voidshutdown(SharedEntity.TypeDescriptor<?> type) Shutdown a particular type's index.<S extends SharedEntity>
SharedEntitySearchResult<S>withSearcher(SharedEntity.TypeDescriptor<S> type, Function<SharedEntitySearcher<S>, SharedEntitySearchResult<S>> searcherOperation) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.sharing.index.SharedEntityIndexer
contributeToSnapshot
-
Constructor Details
-
MockSharedEntityIndexer
public MockSharedEntityIndexer()
-
-
Method Details
-
index
Description copied from interface:SharedEntityIndexerAdd or update multiple documents in the index- Specified by:
indexin interfaceSharedEntityIndexer- Parameters:
sharedEntities- a Set of entities to add to the indexshouldReplicate- whether or not the index changes should be replicated to the other nodes in the cluster.
-
deIndex
Description copied from interface:SharedEntityIndexerDelete multiple documents in the index- Specified by:
deIndexin interfaceSharedEntityIndexer- Parameters:
sharedEntities- a Set of entities to remove from the indexshouldReplicate- whether or not the index changes should be replicated to the other nodes in the cluster.
-
getAllIndexPaths
- Specified by:
getAllIndexPathsin interfaceSharedEntityIndexer- Returns:
- all the paths where the indexes are