Module org.apache.lucene.core
Package org.apache.lucene.search
Class TimeLimitingCollector.TimeExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.lucene.search.TimeLimitingCollector.TimeExceededException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- TimeLimitingCollector
Thrown when elapsed search time exceeds allowed search time.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final long
private final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
TimeExceededException
(long timeAllowed, long timeElapsed, int lastDocCollected) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns last doc (absolute doc id) that was collected when the search time exceeded.long
Returns allowed time (milliseconds).long
Returns elapsed time (milliseconds).Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
timeAllowed
private final long timeAllowed -
timeElapsed
private final long timeElapsed -
lastDocCollected
private final int lastDocCollected
-
-
Constructor Details
-
TimeExceededException
private TimeExceededException(long timeAllowed, long timeElapsed, int lastDocCollected)
-
-
Method Details
-
getTimeAllowed
public long getTimeAllowed()Returns allowed time (milliseconds). -
getTimeElapsed
public long getTimeElapsed()Returns elapsed time (milliseconds). -
getLastDocCollected
public int getLastDocCollected()Returns last doc (absolute doc id) that was collected when the search time exceeded.
-