|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.indexing.AbstractIndex
org.exist.fulltext.FTIndex
public class FTIndex
Implementation of the full text index. We are currently in a redesign process which is not yet complete. We still have dependencies on FTIndex in the database core. Once these dependencies were removed, FTIndex will be moved into a separate extension module.
Field Summary | |
---|---|
static String |
FILE_NAME
|
static String |
ID
|
Constructor Summary | |
---|---|
FTIndex()
|
Method Summary | |
---|---|
void |
backupToArchive(RawDataBackup backup)
|
boolean |
checkIndex(DBBroker broker)
Convenience method that allows to check index consistency. |
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. |
BFile |
getBFile()
|
IndexWorker |
getWorker(DBBroker broker)
Returns a new IndexWorker, which is used to access the index in a multi-threaded environment. |
void |
open()
Opens the index for writing and reading. |
void |
remove()
Closes the index and removes it completely, including all resources and files associated to it. |
void |
sync()
Sync the index. |
Methods inherited from class org.exist.indexing.AbstractIndex |
---|
getBrokerPool, getDataDir, getIndexId, getIndexName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ID
public static final String FILE_NAME
Constructor Detail |
---|
public FTIndex()
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
configure
in class AbstractIndex
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 void open() throws DatabaseConfigurationException
Index
open
in interface Index
open
in class AbstractIndex
DatabaseConfigurationException
public void close() throws DBException
Index
close
in interface Index
close
in class AbstractIndex
DBException
public void sync() throws DBException
Index
sync
in interface Index
sync
in class AbstractIndex
DBException
public void remove() throws DBException
Index
remove
in interface Index
remove
in class AbstractIndex
DBException
public 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
getWorker
in class AbstractIndex
broker
- The DBBroker that owns this worker
public boolean checkIndex(DBBroker broker)
Index
checkIndex
in interface Index
checkIndex
in class AbstractIndex
broker
- the broker that will perform the operation.
public BFile getBFile()
public void backupToArchive(RawDataBackup backup) throws IOException
backupToArchive
in interface RawBackupSupport
IOException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |