org.apache.solr.search.function
Class FunctionQuery.FunctionWeight

java.lang.Object
  extended by org.apache.solr.search.function.FunctionQuery.FunctionWeight
All Implemented Interfaces:
java.io.Serializable, org.apache.lucene.search.Weight
Enclosing class:
FunctionQuery

protected class FunctionQuery.FunctionWeight
extends java.lang.Object
implements org.apache.lucene.search.Weight

See Also:
Serialized Form

Constructor Summary
FunctionQuery.FunctionWeight(org.apache.lucene.search.Searcher searcher)
           
 
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)
           
 float sumOfSquaredWeights()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionQuery.FunctionWeight

public FunctionQuery.FunctionWeight(org.apache.lucene.search.Searcher searcher)
Method Detail

getQuery

public org.apache.lucene.search.Query getQuery()
Specified by:
getQuery in interface org.apache.lucene.search.Weight

getValue

public float getValue()
Specified by:
getValue in interface org.apache.lucene.search.Weight

sumOfSquaredWeights

public float sumOfSquaredWeights()
                          throws java.io.IOException
Specified by:
sumOfSquaredWeights in interface org.apache.lucene.search.Weight
Throws:
java.io.IOException

normalize

public void normalize(float norm)
Specified by:
normalize in interface org.apache.lucene.search.Weight

scorer

public org.apache.lucene.search.Scorer scorer(org.apache.lucene.index.IndexReader reader)
                                       throws java.io.IOException
Specified by:
scorer in interface org.apache.lucene.search.Weight
Throws:
java.io.IOException

explain

public org.apache.lucene.search.Explanation explain(org.apache.lucene.index.IndexReader reader,
                                                    int doc)
                                             throws java.io.IOException
Specified by:
explain in interface org.apache.lucene.search.Weight
Throws:
java.io.IOException


Copyright © 2006 - 2009 The Apache Software Foundation