Class PayloadScoreQuery.PayloadSpans

All Implemented Interfaces:
SpanCollector
Enclosing class:
PayloadScoreQuery

private class PayloadScoreQuery.PayloadSpans extends FilterSpans implements SpanCollector
  • Field Details

    • decoder

      private final PayloadDecoder decoder
    • payloadsSeen

      public int payloadsSeen
    • payloadScore

      public float payloadScore
  • Constructor Details

  • Method Details

    • accept

      protected FilterSpans.AcceptStatus accept(Spans candidate) throws IOException
      Description copied from class: FilterSpans
      Returns YES if the candidate should be an accepted match, NO if it should not, and NO_MORE_IN_CURRENT_DOC if iteration should move on to the next document.
      Specified by:
      accept in class FilterSpans
      Throws:
      IOException
    • doStartCurrentDoc

      protected void doStartCurrentDoc()
      Description copied from class: Spans
      Called before the current doc's frequency is calculated
      Overrides:
      doStartCurrentDoc in class Spans
    • collectLeaf

      public void collectLeaf(PostingsEnum postings, int position, Term term) throws IOException
      Description copied from interface: SpanCollector
      Collect information from postings
      Specified by:
      collectLeaf in interface SpanCollector
      Parameters:
      postings - a PostingsEnum
      position - the position of the PostingsEnum
      term - the Term for this postings list
      Throws:
      IOException - on error
    • reset

      public void reset()
      Description copied from interface: SpanCollector
      Call to indicate that the driving Spans has moved to a new position
      Specified by:
      reset in interface SpanCollector
    • doCurrentSpans

      protected void doCurrentSpans() throws IOException
      Description copied from class: Spans
      Called each time the scorer's SpanScorer is advanced during frequency calculation
      Overrides:
      doCurrentSpans in class Spans
      Throws:
      IOException