|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.sharing.index.DefaultSharedEntityIndexer
public class DefaultSharedEntityIndexer
default implementation
Nested Class Summary | |
---|---|
static interface |
DefaultSharedEntityIndexer.EntityDocument
Holds a Document and an identifying Term so we can delete any pre-existing document. |
static interface |
DefaultSharedEntityIndexer.EntityDocumentFactory
|
Constructor Summary | |
---|---|
DefaultSharedEntityIndexer(IndexPathManager indexPathManager,
ShareTypeFactory shareTypeFactory,
SharedEntitySearchContextToQueryFactoryMap searchContextToQueryFactoryMap,
SharedEntityAccessor.Factory accessorFactory,
DirectoryFactory directoryFactory)
|
Method Summary | ||
---|---|---|
String |
clear(SharedEntity.TypeDescriptor<?> type)
Clear a particular type's index. |
|
Index.Result |
deIndex(SharedEntity entity)
Delete a document from the index. |
|
Collection<String> |
getAllIndexPaths()
|
|
|
getSearcher(SharedEntity.TypeDescriptor<S> type)
Get a SharedEntitySearcher for the specified SharedEntity.TypeDescriptor |
|
Index.Result |
index(SharedEntity entity)
Add or update a document in the index. |
|
long |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSharedEntityIndexer(IndexPathManager indexPathManager, ShareTypeFactory shareTypeFactory, SharedEntitySearchContextToQueryFactoryMap searchContextToQueryFactoryMap, SharedEntityAccessor.Factory accessorFactory, DirectoryFactory directoryFactory)
Method Detail |
---|
public Index.Result index(SharedEntity entity)
SharedEntityIndexer
index
in interface SharedEntityIndexer
entity
- the entity to add to the indexpublic Index.Result deIndex(SharedEntity entity)
SharedEntityIndexer
deIndex
in interface SharedEntityIndexer
entity
- the entity to remove from the indexpublic <S extends SharedEntity> SharedEntitySearcher<S> getSearcher(SharedEntity.TypeDescriptor<S> type)
SharedEntityIndexer
SharedEntity.TypeDescriptor
getSearcher
in interface SharedEntityIndexer
type
- the index to use when searching
public long optimize(SharedEntity.TypeDescriptor<?> type)
SharedEntityIndexer
optimize
in interface SharedEntityIndexer
type
- describes the particular index
public String clear(SharedEntity.TypeDescriptor<?> type)
SharedEntityIndexer
clear
in interface SharedEntityIndexer
type
- describes the particular indexpublic void recreate(SharedEntity.TypeDescriptor<?> type)
SharedEntityIndexer
recreate
in interface SharedEntityIndexer
public void shutdown(SharedEntity.TypeDescriptor<?> type)
SharedEntityIndexer
shutdown
in interface SharedEntityIndexer
type
- describes the particular indexpublic Collection<String> getAllIndexPaths()
getAllIndexPaths
in interface SharedEntityIndexer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |