|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
public interface Index
Represents an arbitrary index structure that can be used by eXist. This is the main interface to be registered with the database instance. It provides methods to configure, open and close the index. These methods will be called by the main database instance during startup/shutdown. They don't need to be synchronized.
| Method Summary | |
|---|---|
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 |
getIndexId()
Returns an id which uniquely identifies this index. |
String |
getIndexName()
Returns a name which uniquely identifies this index. |
IndexWorker |
getWorker()
Create a new IndexWorker, which is used to access the index in a multi-threaded environment. |
void |
open()
Open the index for writing and reading. |
void |
remove()
Close the index and remove it completely, including all resources and files associated to it. |
void |
sync()
Sync the index. |
| Method Detail |
|---|
String getIndexName()
String getIndexId()
BrokerPool getBrokerPool()
void configure(BrokerPool pool,
String dataDir,
Element config)
throws DatabaseConfigurationException
pool - 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
void open()
throws DatabaseConfigurationException
DatabaseConfigurationException
void close()
throws DBException
DBException
void sync()
throws DBException
DBExceptionIndexWorker getWorker()
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.
void remove()
throws DBException
DBException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||