Class IndexManager
java.lang.Object
net.ontopia.topicmaps.impl.utils.AbstractIndexManager
net.ontopia.topicmaps.impl.basic.index.IndexManager
- All Implemented Interfaces:
Serializable,IndexManagerIF
INTERNAL: The basic index manager implementation.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIndexManager(TopicMapTransactionIF transaction, CollectionFactoryIF cfactory, EventManagerIF emanager, ObjectTreeManager otree, SubjectIdentityCache sicache) -
Method Summary
Modifier and TypeMethodDescriptionDEPRECATED: Returns all the active indexes.DEPRECATED: Gets an index by name.DEPRECATED: Returns the names of the indexes that this index manager supports.DEPRECATED: Gets the topic map store to which this index manager belongs.booleanDEPRECATED: Returns true if the index is active.voidregisterIndex(String name, IndexIF index) INTERNAL: Register the specified index with the index manager.
-
Field Details
-
transaction
-
indexes
-
-
Constructor Details
-
IndexManager
public IndexManager(TopicMapTransactionIF transaction, CollectionFactoryIF cfactory, EventManagerIF emanager, ObjectTreeManager otree, SubjectIdentityCache sicache)
-
-
Method Details
-
getTransaction
Description copied from interface:IndexManagerIFDEPRECATED: Gets the topic map store to which this index manager belongs.- Specified by:
getTransactionin interfaceIndexManagerIF- Returns:
- The topic map store; an object implementing TopicMapStoreIF.
-
getIndex
Description copied from interface:IndexManagerIFDEPRECATED: Gets an index by name. An index is usually named by the IndexIF subinterface that it implements.If no such index is currently active it is created and populated automatically when this method is called. In the case when the index implementation is not dynamic it may take a while for the index to populate itself, depending on the size of the topic map.
- Specified by:
getIndexin interfaceIndexManagerIF- Parameters:
name- A string; the index name, usually the IndexIF subinterface that it implements.
-
getSupportedIndexes
Description copied from interface:IndexManagerIFDEPRECATED: Returns the names of the indexes that this index manager supports.- Specified by:
getSupportedIndexesin interfaceIndexManagerIF- Returns:
- A collection of strings which are index names.
-
getActiveIndexes
Description copied from interface:IndexManagerIFDEPRECATED: Returns all the active indexes. An active index is an index that has been loaded and populated.- Specified by:
getActiveIndexesin interfaceIndexManagerIF- Returns:
- A collection of IndexIF objects.
-
isActive
Description copied from interface:IndexManagerIFDEPRECATED: Returns true if the index is active. An active index is an index that has been loaded and populated. Note that the index need not be up to date.- Specified by:
isActivein interfaceIndexManagerIF- Parameters:
name- A string which is an index name.- Returns:
- Boolean: true if the given index is populated, otherwise false.
-
registerIndex
Description copied from class:AbstractIndexManagerINTERNAL: Register the specified index with the index manager.- Specified by:
registerIndexin classAbstractIndexManager- Parameters:
name- The to register the index with name.index- The index to register.
-