You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ds...@apache.org on 2020/09/02 15:33:22 UTC
[lucene-solr] branch master updated: LUCENE ExitableReaderException
public ctor (#1797)
This is an automated email from the ASF dual-hosted git repository.
dsmiley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/master by this push:
new 20af6db LUCENE ExitableReaderException public ctor (#1797)
20af6db is described below
commit 20af6dbd3db18aa24de6c681cbf652e6d2d280e2
Author: David Smiley <ds...@apache.org>
AuthorDate: Wed Sep 2 11:30:26 2020 -0400
LUCENE ExitableReaderException public ctor (#1797)
And cross-link javadocs with TimeLimitingCollector
---
.../src/java/org/apache/lucene/index/ExitableDirectoryReader.java | 4 +++-
.../core/src/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 d80529e..b52189b 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 6957994..2e35a4c 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 {