net.ontopia.infoset.fulltext.topicmaps
Class DefaultTopicMapIndexer

java.lang.Object
  extended by net.ontopia.infoset.fulltext.topicmaps.DefaultTopicMapIndexer

public class DefaultTopicMapIndexer
extends java.lang.Object

INTERNAL: The default topic map indexer manager. This indexer is preconfigured in a way that it should be suitable for most cases when topic maps need to be indexed.

If external resources is not to be indexed the DefaultIndexerManager indexer manager is used internally, otherwise the following configuration:


Field Summary
protected  TopicMapDocumentGeneratorIF docgen
           
protected  IndexerIF imanager
           
protected  boolean index_external
           
protected  IndexerIF indexer
           
 
Constructor Summary
DefaultTopicMapIndexer(IndexerIF indexer)
          Creates a default topic map indexer.
DefaultTopicMapIndexer(IndexerIF indexer, boolean index_external, java.lang.String preloaddir)
          Creates a topic map indexer.
 
Method Summary
 void close()
          INTERNAL: Closes the indexer manager.
 void delete(TMObjectIF tmobject)
          INTERNAL: Deletes the given topic map object.
 void flush()
          INTERNAL: Flushes the index.
 IndexerIF getNestedIndexer()
          INTERNAL: Gets the nested indexer manager.
 void index(OccurrenceIF occurs)
          INTERNAL: Indexes the given occurrence.
 void index(TopicMapIF topicmap)
          INTERNAL: Indexes the given topic map.
 void index(TopicNameIF name)
          INTERNAL: Indexes the given topic name.
 void index(VariantNameIF variant)
          INTERNAL: Indexes the given variant name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indexer

protected IndexerIF indexer

index_external

protected boolean index_external

imanager

protected IndexerIF imanager

docgen

protected TopicMapDocumentGeneratorIF docgen
Constructor Detail

DefaultTopicMapIndexer

public DefaultTopicMapIndexer(IndexerIF indexer)
Creates a default topic map indexer. External resources are not indexed.

Parameters:
indexer - The indexer that will do the actual indexing.

DefaultTopicMapIndexer

public DefaultTopicMapIndexer(IndexerIF indexer,
                              boolean index_external,
                              java.lang.String preloaddir)
Creates a topic map indexer.

Parameters:
indexer - The indexer that will do the actual indexing.
index_external - Whether external resources will be indexed.
Method Detail

getNestedIndexer

public IndexerIF getNestedIndexer()
INTERNAL: Gets the nested indexer manager.


index

public void index(TopicMapIF topicmap)
           throws java.io.IOException
INTERNAL: Indexes the given topic map.

Throws:
java.io.IOException

index

public void index(TopicNameIF name)
           throws java.io.IOException
INTERNAL: Indexes the given topic name.

Throws:
java.io.IOException

index

public void index(VariantNameIF variant)
           throws java.io.IOException
INTERNAL: Indexes the given variant name.

Throws:
java.io.IOException

index

public void index(OccurrenceIF occurs)
           throws java.io.IOException
INTERNAL: Indexes the given occurrence.

Throws:
java.io.IOException

delete

public void delete(TMObjectIF tmobject)
            throws java.io.IOException
INTERNAL: Deletes the given topic map object.

Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
INTERNAL: Flushes the index.

Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
INTERNAL: Closes the indexer manager. Note that the wrapped indexer is not closed, only flushed, since this class isn't managing the indexer.

Throws:
java.io.IOException


Copyright © 2000-2012 Ontopia.