|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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 IndexManagerIFpublic IndexIF getIndex(java.lang.String name)
IndexManagerIFIf 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 IndexManagerIFname - A string; the index name, usually the IndexIF
subinterface that it implements.public java.util.Collection getSupportedIndexes()
IndexManagerIF
getSupportedIndexes in interface IndexManagerIFpublic java.util.Collection getActiveIndexes()
IndexManagerIF
getActiveIndexes in interface IndexManagerIFpublic boolean isActive(java.lang.String name)
IndexManagerIF
isActive in interface IndexManagerIFname - A string which is an index name.
public void registerIndex(java.lang.String name,
AbstractIndex index)
AbstractIndexManager
registerIndex in class AbstractIndexManagername - 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 | |||||||||