Package net.ontopia.topicmaps.impl.utils
Class FulltextIndexManager
java.lang.Object
net.ontopia.topicmaps.impl.utils.AbstractIndex
net.ontopia.topicmaps.impl.utils.BasicIndex
net.ontopia.topicmaps.impl.utils.FulltextIndexManager
- All Implemented Interfaces:
IndexIF,EventListenerIF
INTERNAL: The indexer manager will keep track of base names,
variants and occurrences that are changed in the topic map. These
fulltext index can later be synchronized through the
synchronizeIndex method.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex
BasicIndex.EventHandler<K,V>, BasicIndex.TypedPredicate -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Collection<TMObjectIF>protected Collection<TMObjectIF>protected Collection<String>Fields inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex
handlers -
Constructor Summary
ConstructorsConstructorDescriptionINTERNAL: Registers the fulltext index manager with the event system of the specified topic map store. -
Method Summary
Modifier and TypeMethodDescriptionbooleanINTERNAL: Returns true if index manager has seen changes to the topic map, so that the index must be updated.protected voidobjectAdded(Object object) protected voidobjectChanged(Object object) protected voidobjectRemoved(Object object) booleansynchronizeIndex(IndexerIF indexer) INTERNAL: Applies all changes made to the topic map to the specified fulltext indexer.Methods inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex
getIndex, processEvent
-
Field Details
-
added
-
removed
-
changed
-
-
Constructor Details
-
FulltextIndexManager
INTERNAL: Registers the fulltext index manager with the event system of the specified topic map store.- Parameters:
store-
-
-
Method Details
-
needSynchronization
public boolean needSynchronization()INTERNAL: Returns true if index manager has seen changes to the topic map, so that the index must be updated.- Returns:
- True if index must be updated.
-
synchronizeIndex
INTERNAL: Applies all changes made to the topic map to the specified fulltext indexer.- Parameters:
indexer- The fulltext indexer to synchronize against.- Returns:
- True if the index was modified.
- Throws:
IOException
-
objectAdded
-
objectRemoved
-
objectChanged
-