Class ProfileWeight

java.lang.Object
org.apache.lucene.search.Weight
org.elasticsearch.search.profile.query.ProfileWeight
All Implemented Interfaces:
org.apache.lucene.search.SegmentCacheable

public final class ProfileWeight extends org.apache.lucene.search.Weight
Weight wrapper that will compute how much time it takes to build the Scorer and then return a Scorer that is wrapped in order to compute timings as well.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.lucene.search.Weight

    org.apache.lucene.search.Weight.DefaultBulkScorer, org.apache.lucene.search.Weight.StartDISIWrapper
  • Field Summary

    Fields inherited from class org.apache.lucene.search.Weight

    parentQuery
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProfileWeight(org.apache.lucene.search.Query query, org.apache.lucene.search.Weight subQueryWeight, QueryProfileBreakdown profile)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.search.BulkScorer
    bulkScorer(org.apache.lucene.index.LeafReaderContext context)
     
    org.apache.lucene.search.Explanation
    explain(org.apache.lucene.index.LeafReaderContext context, int doc)
     
    void
    extractTerms(Set<org.apache.lucene.index.Term> set)
     
    boolean
    isCacheable(org.apache.lucene.index.LeafReaderContext ctx)
     
    org.apache.lucene.search.Scorer
    scorer(org.apache.lucene.index.LeafReaderContext context)
     
    org.apache.lucene.search.ScorerSupplier
    scorerSupplier(org.apache.lucene.index.LeafReaderContext context)
     

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

    getQuery, matches

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • scorer

      public org.apache.lucene.search.Scorer scorer(org.apache.lucene.index.LeafReaderContext context) throws IOException
      Specified by:
      scorer in class org.apache.lucene.search.Weight
      Throws:
      IOException
    • scorerSupplier

      public org.apache.lucene.search.ScorerSupplier scorerSupplier(org.apache.lucene.index.LeafReaderContext context) throws IOException
      Overrides:
      scorerSupplier in class org.apache.lucene.search.Weight
      Throws:
      IOException
    • bulkScorer

      public org.apache.lucene.search.BulkScorer bulkScorer(org.apache.lucene.index.LeafReaderContext context) throws IOException
      Overrides:
      bulkScorer in class org.apache.lucene.search.Weight
      Throws:
      IOException
    • explain

      public org.apache.lucene.search.Explanation explain(org.apache.lucene.index.LeafReaderContext context, int doc) throws IOException
      Specified by:
      explain in class org.apache.lucene.search.Weight
      Throws:
      IOException
    • extractTerms

      public void extractTerms(Set<org.apache.lucene.index.Term> set)
      Specified by:
      extractTerms in class org.apache.lucene.search.Weight
    • isCacheable

      public boolean isCacheable(org.apache.lucene.index.LeafReaderContext ctx)