@Internal public abstract class AbstractReIndexer extends Object implements ReIndexer
Constructor and Description |
---|
AbstractReIndexer(SearchableDao searchableDao,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doReIndex(SearchQuery deleteQuery,
List<HibernateHandle> handles,
Progress progress,
Integer threadCount) |
protected abstract List<HibernateHandle> |
getHandlesByQuery(SearchQuery query) |
void |
reIndex(EnumSet<ReIndexOption> options,
Progress progress)
Triggers a system wide re-index all entities from the database.
|
void |
reIndex(EnumSet<ReIndexOption> options,
SearchQuery searchQuery,
Progress progress)
Triggers a system wide re-index re-index all entities loaded from searchQuery.
|
public AbstractReIndexer(SearchableDao searchableDao, com.atlassian.event.api.EventPublisher eventPublisher)
public void reIndex(EnumSet<ReIndexOption> options, Progress progress)
ReIndexer
public void reIndex(EnumSet<ReIndexOption> options, @Nonnull SearchQuery searchQuery, Progress progress)
ReIndexer
protected abstract List<HibernateHandle> getHandlesByQuery(SearchQuery query)
protected abstract void doReIndex(SearchQuery deleteQuery, List<HibernateHandle> handles, Progress progress, Integer threadCount)
Copyright © 2003–2017 Atlassian. All rights reserved.