org.jboss.dna.search.lucene.query
Class CompareQuery<ValueType>

java.lang.Object
  extended by org.apache.lucene.search.Query
      extended by org.jboss.dna.search.lucene.query.CompareQuery<ValueType>
Type Parameters:
ValueType -
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
CompareLengthQuery, CompareNameQuery, ComparePathQuery, CompareStringQuery

public abstract class CompareQuery<ValueType>
extends org.apache.lucene.search.Query

A Lucene Query implementation that is used to apply a Comparison constraint against the Path of nodes. This query implementation works by using the weight and scorer of the wrapped query to score (and return) only those documents that correspond to nodes with Paths that satisfy the constraint.

See Also:
Serialized Form

Method Summary
 org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.Searcher searcher)
          
 String toString(String field)
          
 
Methods inherited from class org.apache.lucene.search.Query
clone, combine, equals, extractTerms, getBoost, getSimilarity, hashCode, mergeBooleanQueries, rewrite, setBoost, toString, weight
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

createWeight

public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.Searcher searcher)

Overrides:
createWeight in class org.apache.lucene.search.Query
See Also:
Query.createWeight(org.apache.lucene.search.Searcher)

toString

public String toString(String field)

Specified by:
toString in class org.apache.lucene.search.Query
See Also:
Query.toString(java.lang.String)


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.