public class IndexManager extends AbstractIndexManager implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Map<String,IndexIF> |
indexes |
protected TopicMapTransactionIF |
transaction |
Constructor and Description |
---|
IndexManager(TopicMapTransactionIF transaction,
CollectionFactoryIF cfactory,
EventManagerIF emanager,
ObjectTreeManager otree,
SubjectIdentityCache sicache) |
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 TopicMapTransactionIF transaction
public IndexManager(TopicMapTransactionIF transaction, CollectionFactoryIF cfactory, EventManagerIF emanager, ObjectTreeManager otree, SubjectIdentityCache sicache)
public TopicMapTransactionIF getTransaction()
IndexManagerIF
getTransaction
in interface 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.
getIndex
in interface IndexManagerIF
name
- A string; the index name, usually the IndexIF
subinterface that it implements.public Collection<String> getSupportedIndexes()
IndexManagerIF
getSupportedIndexes
in interface IndexManagerIF
public Collection<IndexIF> getActiveIndexes()
IndexManagerIF
getActiveIndexes
in interface IndexManagerIF
public boolean isActive(String name)
IndexManagerIF
isActive
in interface 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.