| java.lang.Object org.apache.lucene.index.LuceneSubIndexInfo
LuceneSubIndexInfo | public class LuceneSubIndexInfo (Code) | | 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.
author: kimchy |
Inner Class :public static class LuceneSegmentInfo | |
LuceneSubIndexInfo | protected LuceneSubIndexInfo(String subIndex, long version, ArrayList segmentInfos)(Code) | | |
getIndexInfo | public static LuceneSubIndexInfo getIndexInfo(String subIndex, CompassSession session) throws IOException(Code) | | Returns low level Lucene index sub index information. Note, this method
can be called outside of a transactional context.
Parameters: subIndex - The sub index to get the info for Parameters: session - The compass session that will be used for transactional support The sub index info throws: IOException - Failed to read the segments from the directory |
getSubIndex | public String getSubIndex()(Code) | | The index parh of the given index.
The index path |
info | public LuceneSegmentInfo info(int segmentIndex)(Code) | | The segment info that maps to the given index.
Parameters: segmentIndex - The segment index The segment info structure |
size | public int size()(Code) | | Retruns the number of segments.
The number of segments |
version | public long version()(Code) | | Returns the version of the index.
The version of the index |
|
|