public interface IndexManagerIF
Indexes are referred to by name, where the name is the full class name of the interface of the index that is wanted, e.g. "net.ontopia.topicmaps.core.index.ClassInstanceIndexIF". This is what is meant by an "index name" below. There is only one index with each given name.
Modifier and Type | Method and Description |
---|---|
Collection<IndexIF> |
getActiveIndexes()
Deprecated.
DEPRECATED: Returns all the active indexes.
|
IndexIF |
getIndex(String name)
Deprecated.
DEPRECATED: Gets an index by name.
|
Collection<String> |
getSupportedIndexes()
Deprecated.
DEPRECATED: Returns the names of the indexes that this index
manager supports.
|
TopicMapTransactionIF |
getTransaction()
Deprecated.
DEPRECATED: Gets the topic map store to which this index manager
belongs.
|
boolean |
isActive(String name)
Deprecated.
DEPRECATED: Returns true if the index is active.
|
TopicMapTransactionIF getTransaction()
IndexIF getIndex(String name)
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.
name
- A string; the index name, usually the IndexIF
subinterface that it implements.OntopiaUnsupportedException
- Thrown if the index is either
unknown or not supported by the index manager.Collection<String> getSupportedIndexes()
boolean isActive(String name)
name
- A string which is an index name.Collection<IndexIF> getActiveIndexes()