|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.index.CheckIndex.Status
public static class CheckIndex.Status
Returned from CheckIndex.checkIndex()
detailing the health and status of the index.
WARNING: this API is new and experimental and is subject to suddenly change in the next release.
Nested Class Summary | |
---|---|
static class |
CheckIndex.Status.SegmentInfoStatus
Holds the status of each segment in the index. |
Field Summary | |
---|---|
boolean |
cantOpenSegments
True if we were unable to open the segments_N file. |
boolean |
clean
True if no problems were found with the index. |
Directory |
dir
Directory index is in. |
boolean |
missingSegments
True if we were unable to locate and load the segments_N file. |
boolean |
missingSegmentVersion
True if we were unable to read the version number from segments_N file. |
int |
numBadSegments
How many bad segments were found. |
int |
numSegments
Number of segments in the index. |
boolean |
partial
True if we checked only specific segments ( CheckIndex.checkIndex(List) ) was called with non-null
argument). |
String |
segmentFormat
String description of the version of the index. |
List |
segmentInfos
List of CheckIndex.Status.SegmentInfoStatus instances, detailing status of each segment. |
List |
segmentsChecked
Empty unless you passed specific segments list to check as optional 3rd argument. |
String |
segmentsFileName
Name of latest segments_N file in the index. |
boolean |
toolOutOfDate
True if the index was created with a newer version of Lucene than the CheckIndex tool. |
int |
totLoseDocCount
How many documents will be lost to bad segments. |
Constructor Summary | |
---|---|
CheckIndex.Status()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean clean
public boolean missingSegments
public boolean cantOpenSegments
public boolean missingSegmentVersion
public String segmentsFileName
public int numSegments
public String segmentFormat
public List segmentsChecked
CheckIndex.checkIndex(List)
public boolean toolOutOfDate
public List segmentInfos
CheckIndex.Status.SegmentInfoStatus
instances, detailing status of each segment.
public Directory dir
public int totLoseDocCount
public int numBadSegments
public boolean partial
CheckIndex.checkIndex(List)
) was called with non-null
argument).
Constructor Detail |
---|
public CheckIndex.Status()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |