|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.exist.indexing.AbstractIndex
public abstract class AbstractIndex
| Constructor Summary | |
|---|---|
AbstractIndex()
|
|
| Method Summary | |
|---|---|
abstract void |
close()
Close the index and all associated resources. |
void |
configure(BrokerPool pool,
String dataDir,
Element config)
Configure the index and all resources associated with it. |
BrokerPool |
getBrokerPool()
|
String |
getIndexName()
Returns a name which uniquely identifies this index. |
abstract Index |
getInstance()
|
abstract IndexWorker |
getWorker()
Create a new IndexWorker, which is used to access the index in a multi-threaded environment. |
abstract void |
open()
Open the index for writing and reading. |
abstract void |
remove()
Close the index and remove it completely, including all resources and files associated to it. |
abstract void |
sync()
Sync the index. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.exist.indexing.Index |
|---|
getIndexId |
| Constructor Detail |
|---|
public AbstractIndex()
| Method Detail |
|---|
public abstract Index getInstance()
public String getIndexName()
Index
getIndexName in interface Indexpublic BrokerPool getBrokerPool()
getBrokerPool in interface Index
public void configure(BrokerPool pool,
String dataDir,
Element config)
throws DatabaseConfigurationException
Index
configure in interface Indexpool - the BrokerPool representing the current database instance.dataDir - the main data directory where eXist stores its files.config - the module element which configures this index, as found in conf.xml
DatabaseConfigurationException
public abstract void open()
throws DatabaseConfigurationException
Index
open in interface IndexDatabaseConfigurationException
public abstract void close()
throws DBException
Index
close in interface IndexDBException
public abstract void sync()
throws DBException
Index
sync in interface IndexDBExceptionpublic abstract IndexWorker getWorker()
IndexDBBroker objects. All operations on the db
have to go through one of these brokers. Each DBBroker retrieves an
IndexWorker for every index by calling this method.
getWorker in interface Index
public abstract void remove()
throws DBException
Index
remove in interface IndexDBException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||