|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SharedEntityIndexer
Responsible for actually indexing a SharedEntity
.
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. |
Method Detail |
---|
Index.Result index(SharedEntity entity)
entity
- the entity to add to the indexIndex.Result deIndex(SharedEntity entity)
entity
- the entity to remove from the index<S extends SharedEntity> SharedEntitySearcher<S> getSearcher(SharedEntity.TypeDescriptor<S> type)
SharedEntity.TypeDescriptor
type
- the index to use when searching
long optimize(SharedEntity.TypeDescriptor<?> type)
type
- describes the particular index
void shutdown(SharedEntity.TypeDescriptor<?> type)
type
- describes the particular indexString clear(SharedEntity.TypeDescriptor<?> type)
type
- describes the particular indexCollection<String> getAllIndexPaths()
void recreate(SharedEntity.TypeDescriptor<?> type)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |