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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Status from testing DocValuesstatic final class
Status from testing field norms.static class
Holds the status of each segment in the index.static final class
Status from testing stored fields.static final class
Status from testing term index.static final class
Status from testing stored fields. -
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
True if we were unable to open the segments_N file.boolean
True if no problems were found with the index.Directory index is in.int
The greatest segment name.boolean
True if we were unable to locate and load the segments_N file.boolean
True if we were unable to read the version number from segments_N file.int
How many bad segments were found.int
Number of segments in the index.boolean
True if we checked only specific segments (CheckIndex.checkIndex(List)
) was called with non-null argument).List ofCheckIndex.Status.SegmentInfoStatus
instances, 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.boolean
True if the index was created with a newer version of Lucene than the CheckIndex tool.int
How many documents will be lost to bad segments.Holds the userData of the last commit in the indexboolean
Whether the SegmentInfos.counter is greater than any of the segments' names. -
Method Summary
-
Field Details
-
clean
public boolean cleanTrue if no problems were found with the index. -
missingSegments
public boolean missingSegmentsTrue if we were unable to locate and load the segments_N file. -
cantOpenSegments
public boolean cantOpenSegmentsTrue if we were unable to open the segments_N file. -
missingSegmentVersion
public boolean missingSegmentVersionTrue if we were unable to read the version number from segments_N file. -
segmentsFileName
Name of latest segments_N file in the index. -
numSegments
public int numSegmentsNumber of segments in the index. -
segmentsChecked
Empty unless you passed specific segments list to check as optional 3rd argument.- See Also:
-
toolOutOfDate
public boolean toolOutOfDateTrue if the index was created with a newer version of Lucene than the CheckIndex tool. -
segmentInfos
List ofCheckIndex.Status.SegmentInfoStatus
instances, detailing status of each segment. -
dir
Directory index is in. -
totLoseDocCount
public int totLoseDocCountHow many documents will be lost to bad segments. -
numBadSegments
public int numBadSegmentsHow many bad segments were found. -
partial
public boolean partialTrue if we checked only specific segments (CheckIndex.checkIndex(List)
) was called with non-null argument). -
maxSegmentName
public int maxSegmentNameThe greatest segment name. -
validCounter
public boolean validCounterWhether the SegmentInfos.counter is greater than any of the segments' names. -
userData
Holds the userData of the last commit in the index
-