org.apache.lucene.search
public class: MatchAllDocsQuery [javadoc |
source]
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.search.MatchAllDocsQuery
All Implemented Interfaces:
Cloneable, Serializable
A query that matches all documents.
| Methods from org.apache.lucene.search.Query: |
|---|
|
clone, combine, createWeight, equals, extractTerms, getBoost, getSimilarity, hashCode, mergeBooleanQueries, rewrite, setBoost, toString, toString, weight |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.lucene.search.MatchAllDocsQuery Detail: |
public Weight createWeight(Searcher searcher) {
return new MatchAllDocsWeight(searcher);
}
|
public boolean equals(Object o) {
if (!(o instanceof MatchAllDocsQuery))
return false;
MatchAllDocsQuery other = (MatchAllDocsQuery) o;
return this.getBoost() == other.getBoost();
}
|
public void extractTerms(Set<Term> terms) {
}
|
public int hashCode() {
return Float.floatToIntBits(getBoost()) ^ 0x1AA71190;
}
|
public String toString(String field) {
StringBuilder buffer = new StringBuilder();
buffer.append("*:*");
buffer.append(ToStringUtils.boost(getBoost()));
return buffer.toString();
}
|