Package org.alfresco.solr.query
Class AbstractAuthorityQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.alfresco.solr.query.AbstractAuthorityQuery
-
- Direct Known Subclasses:
SolrAuthorityQuery,SolrDeniedQuery,SolrOwnerQuery,SolrReaderQuery
public abstract class AbstractAuthorityQuery extends org.apache.lucene.search.QueryBase class for queries relating to an authority.
-
-
Constructor Summary
Constructors Constructor Description AbstractAuthorityQuery(String authority)Construct with authority.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.apache.lucene.search.WeightcreateWeight(org.apache.lucene.search.IndexSearcher searcher, boolean needsScores)booleanequals(Object o)inthashCode()StringtoString(String field)
-
-
-
Field Detail
-
authority
protected final String authority
-
-
Constructor Detail
-
AbstractAuthorityQuery
public AbstractAuthorityQuery(String authority)
Construct with authority.- Parameters:
authority-
-
-
Method Detail
-
createWeight
public abstract org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, boolean needsScores) throws IOException- Overrides:
createWeightin classorg.apache.lucene.search.Query- Throws:
IOException
-
toString
public String toString(String field)
- Specified by:
toStringin classorg.apache.lucene.search.Query
-
equals
public boolean equals(Object o)
- Specified by:
equalsin classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()
- Specified by:
hashCodein classorg.apache.lucene.search.Query
-
-