org.apache.lucene.search

Class ConstantScoreQuery.ConstantScorer

Enclosing Class:
ConstantScoreQuery

protected class ConstantScoreQuery.ConstantScorer
extends Scorer

Constructor Summary

ConstantScorer(Similarity similarity, IndexReader reader, Weight w)

Method Summary

int
doc()
Explanation
explain(int doc)
boolean
next()
float
score()
boolean
skipTo(int target)

Methods inherited from class org.apache.lucene.search.Scorer

doc, explain, getSimilarity, next, score, score, score, skipTo

Constructor Details

ConstantScorer

public ConstantScorer(Similarity similarity,
                      IndexReader reader,
                      Weight w)
            throws IOException

Method Details

doc

public int doc()
Overrides:
doc in interface Scorer

explain

public Explanation explain(int doc)
            throws IOException
Overrides:
explain in interface Scorer

next

public boolean next()
            throws IOException
Overrides:
next in interface Scorer

score

public float score()
            throws IOException
Overrides:
score in interface Scorer

skipTo

public boolean skipTo(int target)
            throws IOException
Overrides:
skipTo in interface Scorer

Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.