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, subSpansNO_MORE_POSITIONSNO_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, twoPhaseCurrentDocMatchesdoCurrentSpans, doStartCurrentDoc, nextStartPosition, toStringall, empty, range, slowAdvancepublic int startPosition()
SpansSpans.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 Spanspublic int endPosition()
SpansSpans.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 Spanspublic int width()
Spanspublic void collect(SpanCollector collector) throws java.io.IOException
SpansSpans.nextStartPosition(), and before
Spans.NO_MORE_POSITIONS has been reached.