|
||||||||||
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 class |
DefaultSharedEntityIndexer.DefaultEntityTypeConnectionManager
|
static interface |
DefaultSharedEntityIndexer.EntityDocument
Holds a Document and an identifying Term so we can delete any pre-existing document. |
static interface |
DefaultSharedEntityIndexer.EntityDocumentFactory
|
static interface |
DefaultSharedEntityIndexer.EntityTypeConnectionManager
Responsible for getting the appropriate Index for a shared entity type |
Constructor Summary | |
---|---|
DefaultSharedEntityIndexer(DefaultSharedEntityIndexer.EntityTypeConnectionManager connectionManager,
QueryFactory queryFactory,
SharedEntityAccessor.Factory accessorFactory,
DefaultSharedEntityIndexer.EntityDocumentFactory documentFactory)
|
|
DefaultSharedEntityIndexer(LuceneConnectionFactory connectionFactory,
IndexPath indexPath,
ShareTypeFactory shareTypeFactory,
PermissionQueryFactory permissionQueryFactory,
SharedEntityAccessor.Factory accessorFactory)
|
Method Summary | |
---|---|
String |
clear(SharedEntity.TypeDescriptor type)
Clear a particular type's index. |
void |
deIndex(SharedEntity entity)
Delete a document from the index. |
Collection |
getAllIndexPaths()
|
SharedEntitySearcher |
getSearcher(SharedEntity.TypeDescriptor type)
Get a SharedEntitySearcher for the specified SharedEntity.TypeDescriptor |
void |
index(SharedEntity entity)
Add or update a document in the index. |
long |
optimize(SharedEntity.TypeDescriptor type)
Optimize a particular type's 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(LuceneConnectionFactory connectionFactory, IndexPath indexPath, ShareTypeFactory shareTypeFactory, PermissionQueryFactory permissionQueryFactory, SharedEntityAccessor.Factory accessorFactory)
public DefaultSharedEntityIndexer(DefaultSharedEntityIndexer.EntityTypeConnectionManager connectionManager, QueryFactory queryFactory, SharedEntityAccessor.Factory accessorFactory, DefaultSharedEntityIndexer.EntityDocumentFactory documentFactory)
Method Detail |
---|
public void index(SharedEntity entity)
SharedEntityIndexer
index
in interface SharedEntityIndexer
entity
- the entity to add to the indexpublic void deIndex(SharedEntity entity)
SharedEntityIndexer
deIndex
in interface SharedEntityIndexer
entity
- the entity to remove from the indexpublic SharedEntitySearcher getSearcher(SharedEntity.TypeDescriptor 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 shutdown(SharedEntity.TypeDescriptor type)
SharedEntityIndexer
shutdown
in interface SharedEntityIndexer
type
- describes the particular indexpublic Collection getAllIndexPaths()
getAllIndexPaths
in interface SharedEntityIndexer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |