org.apache.jackrabbit.core.query.lucene
Class NameQuery

java.lang.Object
  extended by org.apache.lucene.search.Query
      extended by 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
NameQuery(Name nodeName, IndexFormatVersion version, NamespaceMappings nsMappings)
          Creates a new NameQuery.
 
Method Summary
 void extractTerms(Set terms)
          
 Name getName()
           
 org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader)
          
 String toString(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
 

Constructor Detail

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.
Method Detail

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.