LUCENE ExitableReaderException public ctor (#1797)

And cross-link javadocs with TimeLimitingCollector
This commit is contained in:
David Smiley 2020-09-02 11:30:26 -04:00 committed by GitHub
parent 784ede4eda
commit 20af6dbd3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -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);
} }
} }

View File

@ -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 {