|
|||||||||
| 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.VirtualIndexConfig
public class VirtualIndexConfig
Configuration of a virtual lucene index. Such indexes can not be the target of a harvest operation.
It is only a collection of SingleIndexConfig.
It supplies methods to get some index access objects (IndexReader, Searcher) and status information.
Because of that it is possible to use these virtual indexes for searching like one single index.
| Field Summary | |
|---|---|
IndexConfig[] |
indexes
|
| Fields inherited from class de.pangaea.metadataportal.config.IndexConfig |
|---|
checked, displayName, id, indexReader, oldReaderRef, parent |
| Constructor Summary | |
|---|---|
VirtualIndexConfig(Config parent)
Default constructor |
|
| Method Summary | |
|---|---|
void |
addIndex(String v)
Adds an index by its id to the configuration. |
void |
addIndexCollection(Collection<String> v)
Adds indexes by id to the configuration. |
void |
check()
Checks, if configuration is ok. |
IndexReader |
getSharedIndexReader()
returns a shared, read-only IndexReader. |
boolean |
isIndexAvailable()
checks, if index is available (a segment file is available) |
IndexReader |
newIndexReader()
returns a new IndexReader. |
void |
reopenSharedIndex()
reopens the shared index reader. |
void |
warmSharedIndexReader()
called by SearchService to warm the shared index reader during webapp initialization |
| Methods inherited from class de.pangaea.metadataportal.config.IndexConfig |
|---|
finalize, 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 IndexConfig[] indexes
| Constructor Detail |
|---|
public VirtualIndexConfig(Config parent)
| Method Detail |
|---|
public void addIndex(String v)
public void addIndexCollection(Collection<String> v)
public void check()
throws Exception
IndexConfig
check in class IndexConfigException
public IndexReader getSharedIndexReader()
throws IOException
IndexConfigIndexReader.close().
getSharedIndexReader in class IndexConfigIOException
public IndexReader newIndexReader()
throws IOException
IndexConfig
newIndexReader in class IndexConfigIOException
public boolean isIndexAvailable()
throws IOException
IndexConfig
isIndexAvailable in class IndexConfigIOException
public void reopenSharedIndex()
throws IOException
IndexConfig
reopenSharedIndex in class IndexConfigIOException
public void warmSharedIndexReader()
throws IOException
IndexConfig
warmSharedIndexReader in class IndexConfigIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||