Package org.apache.lucene.index
Class CheckIndex.Status
java.lang.Object
org.apache.lucene.index.CheckIndex.Status
- Enclosing class:
- CheckIndex
Returned from 
CheckIndex.checkIndex() detailing the health and status of the index.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classStatus from testing DocValuesstatic final classStatus from testing field norms.static classHolds the status of each segment in the index.static final classStatus from testing stored fields.static final classStatus from testing term index.static final classStatus from testing stored fields.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionbooleanTrue if we were unable to open the segments_N file.booleanTrue if no problems were found with the index.Directory index is in.intThe greatest segment name.booleanTrue if we were unable to locate and load the segments_N file.booleanTrue if we were unable to read the version number from segments_N file.intHow many bad segments were found.intNumber of segments in the index.booleanTrue if we checked only specific segments (CheckIndex.checkIndex(List)) was called with non-null argument).List ofCheckIndex.Status.SegmentInfoStatusinstances, detailing status of each segment.Empty unless you passed specific segments list to check as optional 3rd argument.Name of latest segments_N file in the index.booleanTrue if the index was created with a newer version of Lucene than the CheckIndex tool.intHow many documents will be lost to bad segments.Holds the userData of the last commit in the indexbooleanWhether the SegmentInfos.counter is greater than any of the segments' names.
- 
Method Summary
- 
Field Details- 
cleanpublic boolean cleanTrue if no problems were found with the index.
- 
missingSegmentspublic boolean missingSegmentsTrue if we were unable to locate and load the segments_N file.
- 
cantOpenSegmentspublic boolean cantOpenSegmentsTrue if we were unable to open the segments_N file.
- 
missingSegmentVersionpublic boolean missingSegmentVersionTrue if we were unable to read the version number from segments_N file.
- 
segmentsFileNameName of latest segments_N file in the index.
- 
numSegmentspublic int numSegmentsNumber of segments in the index.
- 
segmentsCheckedEmpty unless you passed specific segments list to check as optional 3rd argument.- See Also:
 
- 
toolOutOfDatepublic boolean toolOutOfDateTrue if the index was created with a newer version of Lucene than the CheckIndex tool.
- 
segmentInfosList ofCheckIndex.Status.SegmentInfoStatusinstances, detailing status of each segment.
- 
dirDirectory index is in.
- 
totLoseDocCountpublic int totLoseDocCountHow many documents will be lost to bad segments.
- 
numBadSegmentspublic int numBadSegmentsHow many bad segments were found.
- 
partialpublic boolean partialTrue if we checked only specific segments (CheckIndex.checkIndex(List)) was called with non-null argument).
- 
maxSegmentNamepublic int maxSegmentNameThe greatest segment name.
- 
validCounterpublic boolean validCounterWhether the SegmentInfos.counter is greater than any of the segments' names.
- 
userDataHolds the userData of the last commit in the index
 
-