org.apache.lucene.search

Class ConstantScoreQuery.ConstantWeight

Enclosing Class:
ConstantScoreQuery
Implemented Interfaces:
Serializable, Weight

protected class ConstantScoreQuery.ConstantWeight
extends Object
implements Weight

Constructor Summary

ConstantWeight(Searcher searcher)

Method Summary

Explanation
explain(IndexReader reader, int doc)
Query
getQuery()
float
getValue()
void
normalize(float norm)
Scorer
scorer(IndexReader reader)
float
sumOfSquaredWeights()

Constructor Details

ConstantWeight

public ConstantWeight(Searcher searcher)

Method Details

explain

public Explanation explain(IndexReader reader,
                           int doc)
            throws IOException
Specified by:
explain in interface Weight

getQuery

public Query getQuery()
Specified by:
getQuery in interface Weight

getValue

public float getValue()
Specified by:
getValue in interface Weight

normalize

public void normalize(float norm)
Specified by:
normalize in interface Weight

scorer

public Scorer scorer(IndexReader reader)
            throws IOException
Specified by:
scorer in interface Weight

sumOfSquaredWeights

public float sumOfSquaredWeights()
            throws IOException
Specified by:
sumOfSquaredWeights in interface Weight

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