|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.impl.utils.AbstractIndexManager net.ontopia.topicmaps.impl.basic.index.IndexManager
public class IndexManager
INTERNAL: The basic index manager implementation.
Field Summary | |
---|---|
protected java.util.Map |
indexes
|
protected TopicMapTransactionIF |
transaction
|
Constructor Summary | |
---|---|
IndexManager(TopicMapTransactionIF transaction,
CollectionFactoryIF cfactory,
EventManagerIF emanager,
ObjectTreeManager otree)
|
Method Summary | |
---|---|
java.util.Collection |
getActiveIndexes()
DEPRECATED: Returns all the active indexes. |
IndexIF |
getIndex(java.lang.String name)
DEPRECATED: Gets an index by name. |
java.util.Collection |
getSupportedIndexes()
DEPRECATED: Returns the names of the indexes that this index manager supports. |
TopicMapTransactionIF |
getTransaction()
DEPRECATED: Gets the topic map store to which this index manager belongs. |
boolean |
isActive(java.lang.String name)
DEPRECATED: Returns true if the index is active. |
void |
registerIndex(java.lang.String name,
AbstractIndex index)
INTERNAL: Register the specified index with the index manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TopicMapTransactionIF transaction
protected java.util.Map indexes
Constructor Detail |
---|
public IndexManager(TopicMapTransactionIF transaction, CollectionFactoryIF cfactory, EventManagerIF emanager, ObjectTreeManager otree)
Method Detail |
---|
public TopicMapTransactionIF getTransaction()
IndexManagerIF
getTransaction
in interface IndexManagerIF
public IndexIF getIndex(java.lang.String name)
IndexManagerIF
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.
getIndex
in interface IndexManagerIF
name
- A string; the index name, usually the IndexIF
subinterface that it implements.public java.util.Collection getSupportedIndexes()
IndexManagerIF
getSupportedIndexes
in interface IndexManagerIF
public java.util.Collection getActiveIndexes()
IndexManagerIF
getActiveIndexes
in interface IndexManagerIF
public boolean isActive(java.lang.String name)
IndexManagerIF
isActive
in interface IndexManagerIF
name
- A string which is an index name.
public void registerIndex(java.lang.String name, AbstractIndex index)
AbstractIndexManager
registerIndex
in class AbstractIndexManager
name
- The to register the index with name.index
- The index to register.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |