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

java.lang.Object
  extended by org.apache.lucene.search.DocIdSetIterator
      extended by org.apache.lucene.search.Scorer
          extended by org.apache.jackrabbit.core.query.lucene.QueryHitsQuery.QueryHitsQueryScorer
Enclosing class:
QueryHitsQuery

public class QueryHitsQuery.QueryHitsQueryScorer
extends org.apache.lucene.search.Scorer

the scorer implementation for this query.


Constructor Summary
protected QueryHitsQuery.QueryHitsQueryScorer(org.apache.lucene.index.IndexReader reader, org.apache.lucene.search.Similarity similarity)
          Creates a new scorer.
 
Method Summary
 int doc()
          
 org.apache.lucene.search.Explanation explain(int doc)
          
 boolean next()
          
 float score()
          
 boolean skipTo(int target)
          
 
Methods inherited from class org.apache.lucene.search.Scorer
getSimilarity, score, score
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryHitsQuery.QueryHitsQueryScorer

protected QueryHitsQuery.QueryHitsQueryScorer(org.apache.lucene.index.IndexReader reader,
                                              org.apache.lucene.search.Similarity similarity)
                                       throws IOException
Creates a new scorer.

Parameters:
reader - the index reader.
similarity - the similarity implementation.
Throws:
IOException - if an error occurs while reading from the index.
Method Detail

next

public boolean next()
             throws IOException

Specified by:
next in class org.apache.lucene.search.DocIdSetIterator
Throws:
IOException

doc

public int doc()

Specified by:
doc in class org.apache.lucene.search.DocIdSetIterator

score

public float score()
            throws IOException

Specified by:
score in class org.apache.lucene.search.Scorer
Throws:
IOException

skipTo

public boolean skipTo(int target)
               throws IOException

Specified by:
skipTo in class org.apache.lucene.search.DocIdSetIterator
Throws:
IOException

explain

public org.apache.lucene.search.Explanation explain(int doc)
                                             throws IOException

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


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