|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.index.LuceneSubIndexInfo
public class LuceneSubIndexInfo
Provides information about the segments within a Lucene index and about the lucene index itself.
Can not be instantiated directly, but has a factory method (getSegmentsInfos)
which returns the index info for the given index path.
| Nested Class Summary | |
|---|---|
static class |
LuceneSubIndexInfo.LuceneSegmentInfo
A Lucene single segment information |
| Constructor Summary | |
|---|---|
protected |
LuceneSubIndexInfo(String subIndex,
long version,
ArrayList segmentInfos)
|
| Method Summary | |
|---|---|
static LuceneSubIndexInfo |
getIndexInfo(String subIndex,
CompassSession session)
Returns low level Lucene index sub index information. |
static LuceneSubIndexInfo |
getIndexInfo(String subIndex,
LuceneSearchEngineIndexManager indexManager)
|
static LuceneSubIndexInfo |
getIndexInfo(String subIndex,
LuceneSearchEngineStore store)
Returns low level Lucene index sub index information. |
String |
getSubIndex()
The index parh of the given index. |
LuceneSubIndexInfo.LuceneSegmentInfo |
info(int segmentIndex)
The segment info that maps to the given index. |
int |
size()
Retruns the number of segments. |
long |
version()
Returns the version of the index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected LuceneSubIndexInfo(String subIndex,
long version,
ArrayList segmentInfos)
| Method Detail |
|---|
public long version()
public int size()
public LuceneSubIndexInfo.LuceneSegmentInfo info(int segmentIndex)
segmentIndex - The segment index
public String getSubIndex()
public static LuceneSubIndexInfo getIndexInfo(String subIndex,
CompassSession session)
throws IOException
subIndex - The sub index to get the info forsession - The compass session that will be used for transactional support
IOException - Failed to read the segments from the directory
public static LuceneSubIndexInfo getIndexInfo(String subIndex,
LuceneSearchEngineIndexManager indexManager)
throws IOException
IOException
public static LuceneSubIndexInfo getIndexInfo(String subIndex,
LuceneSearchEngineStore store)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||