|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.exist.indexing.AbstractIndex
org.exist.indexing.impl.NGramIndex
public class NGramIndex
| Field Summary | |
|---|---|
static String |
ID
|
| Constructor Summary | |
|---|---|
NGramIndex()
|
|
| 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. |
String |
getIndexId()
Returns an id which uniquely identifies this index. |
Index |
getInstance()
|
int |
getN()
|
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. |
| Methods inherited from class org.exist.indexing.AbstractIndex |
|---|
getBrokerPool, getIndexName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ID
| Constructor Detail |
|---|
public NGramIndex()
| Method Detail |
|---|
public Index getInstance()
getInstance in class AbstractIndexpublic String getIndexId()
Index
public void configure(BrokerPool pool,
String dataDir,
Element config)
throws DatabaseConfigurationException
Index
configure in interface Indexconfigure in class AbstractIndexpool - 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 void open()
throws DatabaseConfigurationException
Index
open in interface Indexopen in class AbstractIndexDatabaseConfigurationException
public void close()
throws DBException
Index
close in interface Indexclose in class AbstractIndexDBException
public void sync()
throws DBException
Index
sync in interface Indexsync in class AbstractIndexDBException
public void remove()
throws DBException
Index
remove in interface Indexremove in class AbstractIndexDBExceptionpublic 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 IndexgetWorker in class AbstractIndexpublic int getN()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||