|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.pangaea.metadataportal.config.IndexConfig
de.pangaea.metadataportal.config.SingleIndexConfig
public class SingleIndexConfig
Configuration of a real lucene index. Such indexes can be the target of a harvest operation.
| Field Summary | |
|---|---|
Class<? extends Harvester> |
harvesterClass
|
Properties |
harvesterProperties
|
Templates |
xslt
|
Map<QName,Object> |
xsltParams
|
| Fields inherited from class de.pangaea.metadataportal.config.IndexConfig |
|---|
checked, displayName, id, indexReader, oldReaderRef, parent |
| Constructor Summary | |
|---|---|
SingleIndexConfig(Config parent)
Default constructor |
|
| Method Summary | |
|---|---|
void |
addHarvesterProperty(String value)
Deprecated. |
void |
check()
Checks, if configuration is ok. |
protected void |
finalize()
|
String |
getFullIndexPath()
Returns the local, expanded file system path to index. |
org.apache.lucene.store.Directory |
getIndexDirectory()
Returns the directory implementation, that contains the index. |
org.apache.lucene.index.IndexReader |
getSharedIndexReader()
returns a shared, read-only IndexReader. |
boolean |
isIndexAvailable()
checks, if index is available (a segment file is available) |
org.apache.lucene.index.IndexReader |
newIndexReader(boolean readOnly)
returns a new IndexReader, optionally read-only. |
org.apache.lucene.index.IndexWriter |
newIndexWriter(boolean create)
Opens an IndexWriter for adding Documents to Index. |
void |
reopenSharedIndex()
reopens the shared index reader. |
void |
setHarvesterClass(String v)
Deprecated. |
void |
setIndexDir(String v)
Sets index directory (called from Digester on config load). |
void |
warmSharedIndexReader()
called by SearchService to warm the shared index reader during webapp initialization |
protected void |
warmSharedIndexReader(org.apache.lucene.index.IndexReader r)
warms the shared index readers after reopen or when triggered |
| Methods inherited from class de.pangaea.metadataportal.config.IndexConfig |
|---|
isSharedIndexCurrent, newSearcher, releaseOldSharedReader, replaceSharedIndexReader, setDisplayName, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Class<? extends Harvester> harvesterClass
public final Properties harvesterProperties
public Templates xslt
public Map<QName,Object> xsltParams
| Constructor Detail |
|---|
public SingleIndexConfig(Config parent)
| Method Detail |
|---|
public void setIndexDir(String v)
throws IOException
IOException
@PublicForDigesterUse
@Deprecated
public void setHarvesterClass(String v)
throws ClassNotFoundException
ClassNotFoundException@PublicForDigesterUse @Deprecated public void addHarvesterProperty(String value)
public void check()
throws Exception
IndexConfig
check in class IndexConfigException
public String getFullIndexPath()
throws IOException
IOException
public org.apache.lucene.store.Directory getIndexDirectory()
throws IOException
IOException
public org.apache.lucene.index.IndexReader getSharedIndexReader()
throws IOException
IndexConfigIndexReader.close().
getSharedIndexReader in class IndexConfigIOException
public org.apache.lucene.index.IndexReader newIndexReader(boolean readOnly)
throws IOException
IndexConfig
newIndexReader in class IndexConfigIOException
public org.apache.lucene.index.IndexWriter newIndexWriter(boolean create)
throws IOException
IOException
public boolean isIndexAvailable()
throws IOException
IndexConfig
isIndexAvailable in class IndexConfigIOException
public void reopenSharedIndex()
throws IOException
IndexConfig
reopenSharedIndex in class IndexConfigIOException
protected void warmSharedIndexReader(org.apache.lucene.index.IndexReader r)
throws IOException
IOException
public void warmSharedIndexReader()
throws IOException
IndexConfig
warmSharedIndexReader in class IndexConfigIOException
protected void finalize()
throws Throwable
finalize in class IndexConfigThrowable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||