org.apache.jackrabbit.core.query.lucene
Class QueryHitsQuery.QueryHitsQueryWeight

java.lang.Object
  extended by org.apache.lucene.search.Weight
      extended by org.apache.jackrabbit.core.query.lucene.QueryHitsQuery.QueryHitsQueryWeight
All Implemented Interfaces:
Serializable
Enclosing class:
QueryHitsQuery

public class QueryHitsQuery.QueryHitsQueryWeight
extends org.apache.lucene.search.Weight

The Weight implementation for this query.

See Also:
Serialized Form

Constructor Summary
QueryHitsQuery.QueryHitsQueryWeight(org.apache.lucene.search.Similarity similarity)
          Creates a new weight with the given similarity.
 
Method Summary
 org.apache.lucene.search.Explanation explain(org.apache.lucene.index.IndexReader reader, int doc)
          
 org.apache.lucene.search.Query getQuery()
          
 float getValue()
          
 void normalize(float norm)
          
 org.apache.lucene.search.Scorer scorer(org.apache.lucene.index.IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)
          
 float sumOfSquaredWeights()
          
 
Methods inherited from class org.apache.lucene.search.Weight
scoresDocsOutOfOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryHitsQuery.QueryHitsQueryWeight

public QueryHitsQuery.QueryHitsQueryWeight(org.apache.lucene.search.Similarity similarity)
Creates a new weight with the given similarity.

Parameters:
similarity - the similarity.
Method Detail

getQuery

public org.apache.lucene.search.Query getQuery()

Specified by:
getQuery in class org.apache.lucene.search.Weight

getValue

public float getValue()

Specified by:
getValue in class org.apache.lucene.search.Weight

sumOfSquaredWeights

public float sumOfSquaredWeights()
                          throws IOException

Specified by:
sumOfSquaredWeights in class org.apache.lucene.search.Weight
Throws:
IOException

normalize

public void normalize(float norm)

Specified by:
normalize in class org.apache.lucene.search.Weight

scorer

public org.apache.lucene.search.Scorer scorer(org.apache.lucene.index.IndexReader reader,
                                              boolean scoreDocsInOrder,
                                              boolean topScorer)
                                       throws IOException

Specified by:
scorer in class org.apache.lucene.search.Weight
Throws:
IOException

explain

public org.apache.lucene.search.Explanation explain(org.apache.lucene.index.IndexReader reader,
                                                    int doc)
                                             throws IOException

Specified by:
explain in class org.apache.lucene.search.Weight
Throws:
IOException


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.