Documentation of 'org.apache.lucene.search.spans.SpanWeight' Java class
SpanWeight
org.apache.lucene.search.spans

Class SpanWeight

  • All Implemented Interfaces:
    java.io.Serializable, Weight


    public class SpanWeight
    extends java.lang.Object
    implements Weight
    Expert-only. Public for use by other weight implementations
    See Also:
    Serialized Form
    • Constructor Detail

      • SpanWeight

        public SpanWeight(SpanQuery query,
                          Searcher searcher)
                   throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getQuery

        public Query getQuery()
        Description copied from interface: Weight
        The query that this concerns.
        Specified by:
        getQuery in interface Weight
      • getValue

        public float getValue()
        Description copied from interface: Weight
        The weight for this query.
        Specified by:
        getValue in interface Weight
      • sumOfSquaredWeights

        public float sumOfSquaredWeights()
                                  throws java.io.IOException
        Description copied from interface: Weight
        The sum of squared weights of contained query clauses.
        Specified by:
        sumOfSquaredWeights in interface Weight
        Throws:
        java.io.IOException
      • normalize

        public void normalize(float queryNorm)
        Description copied from interface: Weight
        Assigns the query normalization factor to this.
        Specified by:
        normalize in interface Weight
      • scorer

        public Scorer scorer(IndexReader reader)
                      throws java.io.IOException
        Description copied from interface: Weight
        Constructs a scorer for this.
        Specified by:
        scorer in interface Weight
        Throws:
        java.io.IOException
      • explain

        public Explanation explain(IndexReader reader,
                                   int doc)
                            throws java.io.IOException
        Description copied from interface: Weight
        An explanation of the score computation for the named document.
        Specified by:
        explain in interface Weight
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.