org.apache.lucene.search.spans
Class SpanWeight

Object
  extended by SpanWeight
All Implemented Interfaces:
Serializable, Weight

 class SpanWeight
extends Object
implements Weight


Field Summary
private  SpanQuery query
           
private  float queryNorm
           
private  float queryWeight
           
private  Searcher searcher
           
private  float value
           
 
Constructor Summary
SpanWeight(SpanQuery query, Searcher searcher)
           
 
Method Summary
 Explanation explain(IndexReader reader, int doc)
           
 Query getQuery()
           
 Searcher getSearcher()
           
 float getValue()
           
 void normalize(float queryNorm)
           
 Scorer scorer(IndexReader reader)
           
 float sumOfSquaredWeights()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

searcher

private Searcher searcher

value

private float value

queryNorm

private float queryNorm

queryWeight

private float queryWeight

query

private SpanQuery query
Constructor Detail

SpanWeight

public SpanWeight(SpanQuery query,
                  Searcher searcher)
Method Detail

getSearcher

public Searcher getSearcher()

getQuery

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

getValue

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

sumOfSquaredWeights

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

normalize

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

scorer

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

explain

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