public abstract class AbstractIndexer extends Object implements Indexer
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractIndexer.FlushAndUnlockIndexerQueueCallback
FutureCallback that will flush and unlock indexer queue after last task has been processed.
|
protected class |
AbstractIndexer.IndexAllCallable |
protected class |
AbstractIndexer.UpdateApproximateIndexingTimePerResultCallback
FutureCallback that will calculate total execution time and store it after last task has been processed
Single instance of this callback should be created and added to all created ListenableFutureTasks
|
| Modifier and Type | Field and Description |
|---|---|
protected IndexerService |
indexerService |
protected com.atlassian.bonnie.ILuceneConnection |
luceneConnection |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractIndexer(com.atlassian.bonnie.ILuceneConnection luceneConnection,
com.atlassian.bandana.BandanaManager bandanaManager,
int maxDbConnections,
IndexerService indexerService) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteIndex()
Delete existing index.
|
protected void |
flushAndUnlockIndexerQueue(IndexerContext indexerContext) |
protected long |
getApproximateIndexingTimePerResult()
Retrieve approximate time per result stored in Bandana for a given indexer.
|
protected int |
getConcurrentIndexers() |
protected IndexerContext |
getDefaultIndexerContext() |
protected abstract BambooBandanaContext |
getIndexerBandanaContext() |
int |
getNumberOfDocuments() |
protected IndexerContext |
lockIndexerQueue() |
protected void |
updateApproximateIndexingTimePerResult(long totalIndexingTime,
int entityCount) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEstimatedReindexTime, indexAllprotected final com.atlassian.bonnie.ILuceneConnection luceneConnection
protected final IndexerService indexerService
protected AbstractIndexer(com.atlassian.bonnie.ILuceneConnection luceneConnection,
com.atlassian.bandana.BandanaManager bandanaManager,
int maxDbConnections,
IndexerService indexerService)
public void deleteIndex()
IndexerdeleteIndex in interface Indexerpublic int getNumberOfDocuments()
getNumberOfDocuments in interface Indexerprotected abstract BambooBandanaContext getIndexerBandanaContext()
protected long getApproximateIndexingTimePerResult()
protected void updateApproximateIndexingTimePerResult(long totalIndexingTime,
int entityCount)
protected int getConcurrentIndexers()
@NotNull protected IndexerContext getDefaultIndexerContext()
@NotNull protected IndexerContext lockIndexerQueue()
protected void flushAndUnlockIndexerQueue(@NotNull
IndexerContext indexerContext)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.