Package org.apache.lucene.index
Class CorruptSegmentInfoException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.lucene.index.CorruptIndexException
org.apache.lucene.index.CorruptSegmentInfoException
- All Implemented Interfaces:
Serializable
Thrown when a single segment's
_N.si file cannot be read, because it is missing or
corrupt, while the commit point that references it parsed far enough to name the segment.
Unlike a plain CorruptIndexException, this carries the name
of the affected segment, so a caller such as CheckIndex can report which segment is
broken rather than only that something was. The root cause is always attached, since it is what
names the file on disk.
- See Also:
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Constructor Summary
ConstructorsConstructorDescriptionCorruptSegmentInfoException(String segmentName, String message, DataInput input, Throwable cause) Create an exception naming the segment whose.sicould not be read. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the segment whose.sifile could not be read.Methods inherited from class org.apache.lucene.index.CorruptIndexException
getOriginalMessage, getResourceDescriptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CorruptSegmentInfoException
public CorruptSegmentInfoException(String segmentName, String message, DataInput input, Throwable cause) Create an exception naming the segment whose.sicould not be read.- Parameters:
segmentName- name of the affected segment, must not be nullmessage- description of what went wronginput- the input being read when the failure was detectedcause- the underlying failure, must not be null
-
-
Method Details
-
getSegmentName
Returns the name of the segment whose.sifile could not be read.
-