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:
java.io.Serializable
- Enclosing class:
- TimeLimitingCollector
public static class TimeLimitingCollector.TimeExceededException extends java.lang.RuntimeExceptionThrown when elapsed search time exceeds allowed search time.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intlastDocCollectedprivate longtimeAllowedprivate longtimeElapsed
-
Constructor Summary
Constructors Modifier Constructor Description privateTimeExceededException(long timeAllowed, long timeElapsed, int lastDocCollected)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLastDocCollected()Returns last doc (absolute doc id) that was collected when the search time exceeded.longgetTimeAllowed()Returns allowed time (milliseconds).longgetTimeElapsed()Returns elapsed time (milliseconds).
-
-
-
Method Detail
-
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.
-
-