org.apache.jackrabbit.core.query.lucene
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
Methods inherited from class org.apache.lucene.search.Query |
clone, combine, createWeight, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight |
NameQuery
public NameQuery(Name nodeName,
IndexFormatVersion version,
NamespaceMappings nsMappings)
- Creates a new
NameQuery
.
- Parameters:
nodeName
- the name of the nodes to return.version
- the version of the index.nsMappings
- the namespace mappings of the index.
getName
public 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 class org.apache.lucene.search.Query
- Throws:
IOException
extractTerms
public void extractTerms(Set terms)
-
- Overrides:
extractTerms
in class org.apache.lucene.search.Query
toString
public String toString(String field)
-
- Specified by:
toString
in class org.apache.lucene.search.Query
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.