public class FulltextIndexManager extends BasicIndex
BasicIndex.EventHandler<K,V>, BasicIndex.TypedPredicate
Modifier and Type | Field and Description |
---|---|
protected Collection<TMObjectIF> |
added |
protected Collection<TMObjectIF> |
changed |
protected Collection<String> |
removed |
handlers
Constructor and Description |
---|
FulltextIndexManager(InMemoryTopicMapStore store)
INTERNAL: Registers the fulltext index manager with the event system of the
specified topic map store.
|
Modifier and Type | Method and Description |
---|---|
boolean |
needSynchronization()
INTERNAL: Returns true if index manager has seen changes to the topic map,
so that the index must be updated.
|
protected void |
objectAdded(Object object) |
protected void |
objectChanged(Object object) |
protected void |
objectRemoved(Object object) |
boolean |
synchronizeIndex(IndexerIF indexer)
INTERNAL: Applies all changes made to the topic map to the specified
fulltext indexer.
|
getIndex, processEvent
protected Collection<TMObjectIF> added
protected Collection<String> removed
protected Collection<TMObjectIF> changed
public FulltextIndexManager(InMemoryTopicMapStore store)
store
- public boolean needSynchronization()
public boolean synchronizeIndex(IndexerIF indexer) throws IOException
indexer
- The fulltext indexer to synchronize against.IOException
protected void objectAdded(Object object)
protected void objectRemoved(Object object)
protected void objectChanged(Object object)