mirror of https://github.com/apache/lucene.git
LUCENE-288 - Patch from Andi Vajda applied to work around a GCJ issue (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15411)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@351489 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
530484379e
commit
18b9843fad
|
@ -19,6 +19,7 @@ package org.apache.lucene.search;
|
|||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.index.Term;
|
||||
import org.apache.lucene.document.Document;
|
||||
|
||||
/** An abstract base class for search implementations.
|
||||
* Implements the main search methods.
|
||||
|
@ -71,7 +72,7 @@ public abstract class Searcher implements Searchable {
|
|||
* @throws BooleanQuery.TooManyClauses
|
||||
*/
|
||||
public TopFieldDocs search(Query query, Filter filter, int n,
|
||||
Sort sort) throws IOException {
|
||||
Sort sort) throws IOException {
|
||||
return search(createWeight(query), filter, n, sort);
|
||||
}
|
||||
|
||||
|
@ -92,7 +93,7 @@ public abstract class Searcher implements Searchable {
|
|||
public void search(Query query, HitCollector results)
|
||||
throws IOException {
|
||||
search(query, (Filter)null, results);
|
||||
}
|
||||
}
|
||||
|
||||
/** Lower-level search API.
|
||||
*
|
||||
|
@ -176,4 +177,18 @@ public abstract class Searcher implements Searchable {
|
|||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/* The following abstract methods were added as a workaround for GCJ bug #15411.
|
||||
* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15411
|
||||
*/
|
||||
abstract public void search(Weight weight, Filter filter, HitCollector results) throws IOException;
|
||||
abstract public void close() throws IOException;
|
||||
abstract public int docFreq(Term term) throws IOException;
|
||||
abstract public int maxDoc() throws IOException;
|
||||
abstract public TopDocs search(Weight weight, Filter filter, int n) throws IOException;
|
||||
abstract public Document doc(int i) throws IOException;
|
||||
abstract public Query rewrite(Query query) throws IOException;
|
||||
abstract public Explanation explain(Weight weight, int doc) throws IOException;
|
||||
abstract public TopFieldDocs search(Weight weight, Filter filter, int n, Sort sort) throws IOException;
|
||||
/* End patch for GCJ bug #15411. */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue