abstract class ContainSpans extends ConjunctionSpans
Modifier and Type | Field and Description |
---|---|
(package private) Spans |
bigSpans |
(package private) Spans |
littleSpans |
(package private) Spans |
sourceSpans |
atFirstInCurrentDoc, conjunction, oneExhaustedInCurrentDoc, subSpans
NO_MORE_POSITIONS
NO_MORE_DOCS
Constructor and Description |
---|
ContainSpans(Spans bigSpans,
Spans littleSpans,
Spans sourceSpans) |
Modifier and Type | Method and Description |
---|---|
void |
collect(SpanCollector collector)
Collect postings data from the leaves of the current Spans.
|
int |
endPosition()
Returns the end position for the current start position, or -1 when
Spans.nextStartPosition() was not yet called on the current doc. |
int |
startPosition()
Returns the start position in the current doc, or -1 when
Spans.nextStartPosition() was not yet called on the current doc. |
int |
width()
Return the width of the match, which is typically used to sloppy freq.
|
advance, asTwoPhaseIterator, cost, docID, getSubSpans, nextDoc, positionsCost, toMatchDoc, twoPhaseCurrentDocMatches
doCurrentSpans, doStartCurrentDoc, nextStartPosition, toString
all, empty, range, slowAdvance
public int startPosition()
Spans
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
.startPosition
in class Spans
public int endPosition()
Spans
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
.endPosition
in class Spans
public int width()
Spans
public void collect(SpanCollector collector) throws java.io.IOException
Spans
Spans.nextStartPosition()
, and before
Spans.NO_MORE_POSITIONS
has been reached.