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
NameQuery
implements 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 void
extractTerms(Set<Term> terms)
Name
getName()
Query
rewrite(IndexReader reader)
String
toString(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:
rewrite
in classQuery
- Throws:
IOException
-
extractTerms
public void extractTerms(Set<Term> terms)
- Overrides:
extractTerms
in classQuery
-
-