Class NameQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.jackrabbit.core.query.lucene.NameQuery
-
- All Implemented Interfaces:
Serializable,Cloneable
public class NameQuery extends Query
NameQueryimplements a query for the name of a node.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NameQuery(Name nodeName, IndexFormatVersion version, NamespaceMappings nsMappings)Creates a newNameQuery.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidextractTerms(Set<Term> terms)NamegetName()Queryrewrite(IndexReader reader)StringtoString(String field)-
Methods inherited from class org.apache.lucene.search.Query
clone, combine, createWeight, equals, getBoost, getSimilarity, hashCode, mergeBooleanQueries, setBoost, toString, weight
-
-
-
-
Constructor Detail
-
NameQuery
public NameQuery(Name nodeName, IndexFormatVersion version, NamespaceMappings nsMappings)
Creates a newNameQuery.- Parameters:
nodeName- the name of the nodes to return.version- the version of the index.nsMappings- the namespace mappings of the index.
-
-
Method Detail
-
getName
public Name getName()
- Returns:
- the name of the nodes to return.
-
rewrite
public Query rewrite(IndexReader reader) throws IOException
- Overrides:
rewritein classQuery- Throws:
IOException
-
extractTerms
public void extractTerms(Set<Term> terms)
- Overrides:
extractTermsin classQuery
-
-