add getFilter(), LUCENE-440

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@331113 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2005-11-06 15:55:45 +00:00
parent 9cee714143
commit fd81a02f17
1 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,8 @@ extends Query {
this.filter = filter;
}
/**
* Returns a Weight that applies the filter to the enclosed query's Weight.
* This is accomplished by overriding the Scorer returned by the Weight.
@ -120,6 +122,10 @@ extends Query {
return query;
}
public Filter getFilter() {
return filter;
}
// inherit javadoc
public void extractTerms(Set terms) {
getQuery().extractTerms(terms);