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 org.apache.lucene.search.Query
NameQuery
implements a query for the name of a node.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NameQuery(org.apache.jackrabbit.spi.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<org.apache.lucene.index.Term> terms)
org.apache.jackrabbit.spi.Name
getName()
org.apache.lucene.search.Query
rewrite(org.apache.lucene.index.IndexReader reader)
String
toString(String field)
-
-
-
Constructor Detail
-
NameQuery
public NameQuery(org.apache.jackrabbit.spi.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 org.apache.jackrabbit.spi.Name getName()
- Returns:
- the name of the nodes to return.
-
rewrite
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws IOException
- Overrides:
rewrite
in classorg.apache.lucene.search.Query
- Throws:
IOException
-
extractTerms
public void extractTerms(Set<org.apache.lucene.index.Term> terms)
- Overrides:
extractTerms
in classorg.apache.lucene.search.Query
-
-