Class FulltextIndexManager

All Implemented Interfaces:
IndexIF, EventListenerIF

public class FulltextIndexManager extends BasicIndex
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.
  • Field Details

  • Constructor Details

    • FulltextIndexManager

      public FulltextIndexManager(InMemoryTopicMapStore store)
      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

      public boolean synchronizeIndex(IndexerIF indexer) throws IOException
      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

      protected void objectAdded(Object object)
    • objectRemoved

      protected void objectRemoved(Object object)
    • objectChanged

      protected void objectChanged(Object object)