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.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Status from testing DocValuesstatic final class
Status from testing field infos.static final class
Status from testing field norms.static final class
Status from testing index sortstatic final class
Status from testing livedocsstatic final class
Status from testing PointValuesstatic class
Holds the status of each segment in the index.static final class
Status from testing soft deletesstatic final class
Status from testing stored fields.static final class
Status from testing term index.static final class
Status from testing stored fields.static final class
Status from testing VectorValues -
Field Summary
Modifier and TypeFieldDescriptionboolean
True if no problems were found with the index.Directory index is in.long
The greatest segment name.boolean
True if we were unable to locate and load the 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. -
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 long 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
-