|
|||||||
| 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 boolean |
checkIndex(DBBroker broker)
Convenience method that allows to check index consistency. |
abstract void |
close()
Closes 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()
Returns the BrokerPool on with this Index operates. |
String |
getDataDir()
|
String |
getIndexId()
Returns an id which uniquely identifies this index. |
String |
getIndexName()
Returns a human-readable name which uniquely identifies this index. |
abstract IndexWorker |
getWorker(DBBroker broker)
Returns a new IndexWorker, which is used to access the index in a multi-threaded environment. |
abstract void |
open()
Opens the index for writing and reading. |
abstract void |
remove()
Closes the index and removes 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 |
| Constructor Detail |
|---|
public AbstractIndex()
| Method Detail |
|---|
public void configure(BrokerPool pool,
String dataDir,
Element config)
throws DatabaseConfigurationException
Index<module id="foo" class="bar"/>section of the configuration file.
configure in interface Indexpool - the BrokerPool representing the current database instance.dataDir - the main data directory where eXist stores its files (if relevant).config - the module element which configures this index, as found in conf.xml
DatabaseConfigurationExceptionpublic String getIndexId()
Index
getIndexId in interface Indexpublic String getIndexName()
Index
getIndexName in interface Indexpublic BrokerPool getBrokerPool()
IndexBrokerPool on with this Index operates.
getBrokerPool in interface Indexpublic String getDataDir()
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 IndexDBException
public abstract void remove()
throws DBException
Index
remove in interface IndexDBExceptionpublic abstract IndexWorker getWorker(DBBroker broker)
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 Indexbroker - The DBBroker that owns this worker
public abstract boolean checkIndex(DBBroker broker)
Index
checkIndex in interface Indexbroker - the broker that will perform the operation.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||