|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xindice.util.SimpleConfigurable org.apache.xindice.core.indexer.IndexManager
IndexManager is a class that manages Indexes. Good description, eh? I should win a Pulitzer Prize for that one.
Field Summary |
Fields inherited from class org.apache.xindice.util.SimpleConfigurable |
config |
Constructor Summary | |
IndexManager(Collection collection,
Timer timer)
Create IndexManager for a given collection |
Method Summary | |
void |
addDocument(Key key,
org.w3c.dom.Document doc)
|
void |
close()
Closes all indexers managed by this index manager. |
Indexer |
create(Configuration cfg)
create creates a new Indexer object and any associated system resources that the Indexer will need. |
void |
drop()
Drop all indexers |
boolean |
drop(String name)
drop physically removes the specified Indexer and any associated system resources that the Indexer uses. |
Indexer |
get(String name)
get retrieves an Indexer by name. |
Indexer |
getBestIndexer(String style,
IndexPattern pattern)
getBestIndexer retrieves the best Indexer to use for the specified IndexPattern. |
String[] |
list()
list returns a list of the Indexers that this IndexerManager has registered. |
Indexer |
register(Class c,
Configuration cfg)
|
void |
removeDocument(Key key,
org.w3c.dom.Document doc)
|
void |
setConfig(Configuration config)
Configure index manager, register all indexes specified in the configuration |
void |
unregister(String name)
|
Methods inherited from class org.apache.xindice.util.SimpleConfigurable |
getConfig |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IndexManager(Collection collection, Timer timer)
collection
- Collection for this IndexManagertimer
- Timer for indexing tasksMethod Detail |
public void setConfig(Configuration config) throws XindiceException
setConfig
in interface Configurable
setConfig
in class SimpleConfigurable
config
- IndexManager configuration
XindiceException
public String[] list()
public boolean drop(String name)
name
- The Indexer to drop
public void drop()
public Indexer create(Configuration cfg) throws DBException
cfg
- The Indexer's configuration
DBException
- if unable to create specified indexerpublic void close()
public Indexer register(Class c, Configuration cfg) throws DBException
DBException
public void unregister(String name)
public Indexer get(String name)
name
- The Indexer name
public Indexer getBestIndexer(String style, IndexPattern pattern)
style
- The Indexer Style (ex: Node, Value)pattern
- The IndexPattern to use
public void addDocument(Key key, org.w3c.dom.Document doc)
public void removeDocument(Key key, org.w3c.dom.Document doc)
|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |