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()
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.
name - A string; the index name, usually the IndexIF
subinterface that it implements.public Collection<String> getSupportedIndexes()
IndexManagerIFpublic Collection<IndexIF> getActiveIndexes()
IndexManagerIFpublic boolean isActive(String name)
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.