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:
- java.io.Serializable, java.lang.Cloneable
public class NameQuery
- extends org.apache.lucene.search.Query
NameQuery implements a query for the name of a node.
- See Also:
- Serialized Form
|
Method Summary |
void |
extractTerms(java.util.Set terms)
|
Name |
getName()
|
org.apache.lucene.search.Query |
rewrite(org.apache.lucene.index.IndexReader reader)
|
java.lang.String |
toString(java.lang.String field)
|
| Methods inherited from class org.apache.lucene.search.Query |
clone, combine, createWeight, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 java.io.IOException
-
- Overrides:
rewrite in class org.apache.lucene.search.Query
- Throws:
java.io.IOException
extractTerms
public void extractTerms(java.util.Set terms)
-
- Overrides:
extractTerms in class org.apache.lucene.search.Query
toString
public java.lang.String toString(java.lang.String field)
-
- Specified by:
toString in class org.apache.lucene.search.Query
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.