mirror of https://github.com/apache/lucene.git
LUCENE ExitableReaderException public ctor (#1797)
And cross-link javadocs with TimeLimitingCollector
This commit is contained in:
parent
784ede4eda
commit
20af6dbd3d
|
@ -31,6 +31,8 @@ import org.apache.lucene.util.automaton.CompiledAutomaton;
|
||||||
* allows for a {@link QueryTimeout} implementation object to be checked periodically
|
* allows for a {@link QueryTimeout} implementation object to be checked periodically
|
||||||
* to see if the thread should exit or not. If {@link QueryTimeout#shouldExit()}
|
* to see if the thread should exit or not. If {@link QueryTimeout#shouldExit()}
|
||||||
* returns true, an {@link ExitingReaderException} is thrown.
|
* returns true, an {@link ExitingReaderException} is thrown.
|
||||||
|
*
|
||||||
|
* @see org.apache.lucene.search.TimeLimitingCollector
|
||||||
*/
|
*/
|
||||||
public class ExitableDirectoryReader extends FilterDirectoryReader {
|
public class ExitableDirectoryReader extends FilterDirectoryReader {
|
||||||
|
|
||||||
|
@ -43,7 +45,7 @@ public class ExitableDirectoryReader extends FilterDirectoryReader {
|
||||||
public static class ExitingReaderException extends RuntimeException {
|
public static class ExitingReaderException extends RuntimeException {
|
||||||
|
|
||||||
/** Constructor **/
|
/** Constructor **/
|
||||||
ExitingReaderException(String msg) {
|
public ExitingReaderException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,8 @@ import org.apache.lucene.util.ThreadInterruptedException;
|
||||||
* take longer than the maximum allowed search time limit. After this time is
|
* take longer than the maximum allowed search time limit. After this time is
|
||||||
* exceeded, the search thread is stopped by throwing a
|
* exceeded, the search thread is stopped by throwing a
|
||||||
* {@link TimeExceededException}.
|
* {@link TimeExceededException}.
|
||||||
|
*
|
||||||
|
* @see org.apache.lucene.index.ExitableDirectoryReader
|
||||||
*/
|
*/
|
||||||
public class TimeLimitingCollector implements Collector {
|
public class TimeLimitingCollector implements Collector {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue