org.elasticsearch.common.lucene.search
Class EmptyScorer

java.lang.Object
  extended by org.apache.lucene.search.DocIdSetIterator
      extended by org.apache.lucene.search.Scorer
          extended by org.elasticsearch.common.lucene.search.EmptyScorer

public class EmptyScorer
extends org.apache.lucene.search.Scorer


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.search.Scorer
org.apache.lucene.search.Scorer.ScorerVisitor<P extends org.apache.lucene.search.Query,C extends org.apache.lucene.search.Query,S extends org.apache.lucene.search.Scorer>
 
Field Summary
 
Fields inherited from class org.apache.lucene.search.Scorer
weight
 
Fields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS
 
Constructor Summary
EmptyScorer(org.apache.lucene.search.Similarity similarity)
           
 
Method Summary
 int advance(int target)
           
 int docID()
           
 int nextDoc()
           
 float score()
           
 
Methods inherited from class org.apache.lucene.search.Scorer
freq, getSimilarity, score, score, visitScorers, visitSubScorers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyScorer

public EmptyScorer(org.apache.lucene.search.Similarity similarity)
Method Detail

score

public float score()
            throws IOException
Specified by:
score in class org.apache.lucene.search.Scorer
Throws:
IOException

docID

public int docID()
Specified by:
docID in class org.apache.lucene.search.DocIdSetIterator

nextDoc

public int nextDoc()
            throws IOException
Specified by:
nextDoc in class org.apache.lucene.search.DocIdSetIterator
Throws:
IOException

advance

public int advance(int target)
            throws IOException
Specified by:
advance in class org.apache.lucene.search.DocIdSetIterator
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.