Class ContainSpans


abstract class ContainSpans extends ConjunctionSpans
  • Field Details

    • sourceSpans

      Spans sourceSpans
    • bigSpans

      Spans bigSpans
    • littleSpans

      Spans littleSpans
  • Constructor Details

    • ContainSpans

      ContainSpans(Spans bigSpans, Spans littleSpans, Spans sourceSpans)
  • Method Details

    • startPosition

      public int startPosition()
      Description copied from class: Spans
      Returns the start position in the current doc, or -1 when Spans.nextStartPosition() was not yet called on the current doc. After the last start/end position at the current doc this returns Spans.NO_MORE_POSITIONS.
      Specified by:
      startPosition in class Spans
    • endPosition

      public int endPosition()
      Description copied from class: Spans
      Returns the end position for the current start position, or -1 when Spans.nextStartPosition() was not yet called on the current doc. After the last start/end position at the current doc this returns Spans.NO_MORE_POSITIONS.
      Specified by:
      endPosition in class Spans
    • width

      public int width()
      Description copied from class: Spans
      Return the width of the match, which is typically used to sloppy freq. It is only legal to call this method when the iterator is on a valid doc ID and positioned. The return value must be positive, and lower values means that the match is better.
      Specified by:
      width in class Spans
    • collect

      public void collect(SpanCollector collector) throws IOException
      Description copied from class: Spans
      Collect postings data from the leaves of the current Spans.

      This method should only be called after Spans.nextStartPosition(), and before Spans.NO_MORE_POSITIONS has been reached.

      Specified by:
      collect in class Spans
      Parameters:
      collector - a SpanCollector
      Throws:
      IOException