From 20af6dbd3db18aa24de6c681cbf652e6d2d280e2 Mon Sep 17 00:00:00 2001 From: David Smiley Date: Wed, 2 Sep 2020 11:30:26 -0400 Subject: [PATCH] LUCENE ExitableReaderException public ctor (#1797) And cross-link javadocs with TimeLimitingCollector --- .../java/org/apache/lucene/index/ExitableDirectoryReader.java | 4 +++- .../java/org/apache/lucene/search/TimeLimitingCollector.java | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lucene/core/src/java/org/apache/lucene/index/ExitableDirectoryReader.java b/lucene/core/src/java/org/apache/lucene/index/ExitableDirectoryReader.java index d80529e85b3..b52189b14bf 100644 --- a/lucene/core/src/java/org/apache/lucene/index/ExitableDirectoryReader.java +++ b/lucene/core/src/java/org/apache/lucene/index/ExitableDirectoryReader.java @@ -31,6 +31,8 @@ import org.apache.lucene.util.automaton.CompiledAutomaton; * allows for a {@link QueryTimeout} implementation object to be checked periodically * to see if the thread should exit or not. If {@link QueryTimeout#shouldExit()} * returns true, an {@link ExitingReaderException} is thrown. + * + * @see org.apache.lucene.search.TimeLimitingCollector */ public class ExitableDirectoryReader extends FilterDirectoryReader { @@ -43,7 +45,7 @@ public class ExitableDirectoryReader extends FilterDirectoryReader { public static class ExitingReaderException extends RuntimeException { /** Constructor **/ - ExitingReaderException(String msg) { + public ExitingReaderException(String msg) { super(msg); } } diff --git a/lucene/core/src/java/org/apache/lucene/search/TimeLimitingCollector.java b/lucene/core/src/java/org/apache/lucene/search/TimeLimitingCollector.java index 695799456f8..2e35a4c72f9 100644 --- a/lucene/core/src/java/org/apache/lucene/search/TimeLimitingCollector.java +++ b/lucene/core/src/java/org/apache/lucene/search/TimeLimitingCollector.java @@ -28,6 +28,8 @@ import org.apache.lucene.util.ThreadInterruptedException; * take longer than the maximum allowed search time limit. After this time is * exceeded, the search thread is stopped by throwing a * {@link TimeExceededException}. + * + * @see org.apache.lucene.index.ExitableDirectoryReader */ public class TimeLimitingCollector implements Collector {