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()
IndexManagerIFgetTransaction in interface IndexManagerIFpublic IndexIF getIndex(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 Collection<String> getSupportedIndexes()
IndexManagerIFgetSupportedIndexes in interface IndexManagerIFpublic Collection<IndexIF> getActiveIndexes()
IndexManagerIFgetActiveIndexes in interface IndexManagerIFpublic boolean isActive(String name)
IndexManagerIFisActive in interface IndexManagerIFname - A string which is an index name.public void registerIndex(String name, IndexIF index)
AbstractIndexManagerregisterIndex in class AbstractIndexManagername - The to register the index with name.index - The index to register.