|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.smila.search.lucene.index.access.IndexWriterPool
public final class IndexWriterPool
A Pool of IndexWriter objects.
Method Summary | |
---|---|
static void |
closeAll()
Closes all created IndexWriter objects. |
static void |
closeIndexWriter(java.lang.String indexName)
Closes the IndexWriter for the given index name. |
static void |
flushIndexWriter(java.lang.String indexName)
Flushes the IndexWriter for the given indexName. |
static IndexWriter |
getIndexWriter(java.lang.String indexName,
java.lang.String storage,
Analyzer analyzer)
Gets a IndexWriter object from the pool of IndexWriters or creates a new one if for the given index none exists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static IndexWriter getIndexWriter(java.lang.String indexName, java.lang.String storage, Analyzer analyzer) throws IndexException
indexName
- name of the indexstorage
- the path to the indexanalyzer
- Analyzer used for IndexWriter creation
IndexException
- if any error occurspublic static void flushIndexWriter(java.lang.String indexName) throws IndexException
indexName
- the name of the index
IndexException
- if any error occurspublic static void closeIndexWriter(java.lang.String indexName) throws IndexException
indexName
- name of the index
IndexException
- if any error occurspublic static void closeAll() throws IndexException
IndexException
- if any error occurs
|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |