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 indexlong
optimize
(SharedEntity.TypeDescriptor<?> type) Optimize a particular type's index.void
recreate
(SharedEntity.TypeDescriptor<?> type) Recreate the index.void
shutdown
(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, wait
Methods inherited from interface com.atlassian.jira.sharing.index.SharedEntityIndexer
contributeToSnapshot
-
Constructor Details
-
MockSharedEntityIndexer
public MockSharedEntityIndexer()
-
-
Method Details
-
index
Description copied from interface:SharedEntityIndexer
Add or update multiple documents in the index- Specified by:
index
in 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:SharedEntityIndexer
Delete multiple documents in the index- Specified by:
deIndex
in 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:
getAllIndexPaths
in interfaceSharedEntityIndexer
- Returns:
- all the paths where the indexes are