public class IndexManager extends AbstractIndexManager
Modifier and Type | Field and Description |
---|---|
protected Map<String,IndexIF> |
indexes |
protected TopicMapTransactionIF |
transaction |
Constructor and Description |
---|
IndexManager(TopicMapTransactionIF transaction,
CollectionFactoryIF cfactory) |
Modifier and Type | Method and Description |
---|---|
Collection<IndexIF> |
getActiveIndexes()
DEPRECATED: Returns all the active indexes.
|
IndexIF |
getIndex(String name)
DEPRECATED: Gets an index by name.
|
Collection<String> |
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(String name)
DEPRECATED: Returns true if the index is active.
|
void |
registerIndex(String name,
IndexIF index)
INTERNAL: Register the specified index with the index manager.
|
protected transient TopicMapTransactionIF transaction
public IndexManager(TopicMapTransactionIF transaction, CollectionFactoryIF cfactory)
public TopicMapTransactionIF getTransaction()
IndexManagerIF
public IndexIF getIndex(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.
name
- A string; the index name, usually the IndexIF
subinterface that it implements.public Collection<String> getSupportedIndexes()
IndexManagerIF
public Collection<IndexIF> getActiveIndexes()
IndexManagerIF
public boolean isActive(String name)
IndexManagerIF
name
- A string which is an index name.public void registerIndex(String name, IndexIF index)
AbstractIndexManager
registerIndex
in class AbstractIndexManager
name
- The to register the index with name.index
- The index to register.