|
|||||||
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 Index
pool
- 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
DatabaseConfigurationException
public String getIndexId()
Index
getIndexId
in interface Index
public String getIndexName()
Index
getIndexName
in interface Index
public BrokerPool getBrokerPool()
Index
BrokerPool
on with this Index operates.
getBrokerPool
in interface Index
public String getDataDir()
public abstract void open() throws DatabaseConfigurationException
Index
open
in interface Index
DatabaseConfigurationException
public abstract void close() throws DBException
Index
close
in interface Index
DBException
public abstract void sync() throws DBException
Index
sync
in interface Index
DBException
public abstract void remove() throws DBException
Index
remove
in interface Index
DBException
public abstract IndexWorker getWorker(DBBroker broker)
Index
DBBroker
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
broker
- The DBBroker that owns this worker
public abstract boolean checkIndex(DBBroker broker)
Index
checkIndex
in interface Index
broker
- the broker that will perform the operation.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |