Java org.apache.lucene.search.spans Spans fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.search.spans Spans fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.search.spans Spans.

The text is from its open source code.

Subclass

org.apache.lucene.search.spans.Spans has subclasses.
Click this link to see all its subclasses.

Field

Constructor

Method

intadvance(int target)
Advances to the first beyond the current whose document number is greater than or equal to target, and returns the document number itself.
TwoPhaseIteratorasTwoPhaseIterator()
Optional method: Return a TwoPhaseIterator view of this Scorer .
voidcollect(SpanCollector collector)
Collect postings data from the leaves of the current Spans.
longcost()
Returns the estimated cost of this DocIdSetIterator .
intdocID()
Returns the following:
  • -1 if #nextDoc() or #advance(int) were not called yet.
intendPosition()
Returns the end position for the current start position, or -1 when #nextStartPosition was not yet called on the current doc.
intnextDoc()
Advances to the next document in the set and returns the doc it is currently on, or #NO_MORE_DOCS if there are no more docs in the set.
NOTE: after the iterator has exhausted you should not call this method, as it may result in unpredicted behavior.
intnextStartPosition()
Returns the next start position for the current doc.
floatpositionsCost()
Return an estimation of the cost of using the positions of this Spans for any single document, but only after #asTwoPhaseIterator returned null .
intstartPosition()
Returns the start position in the current doc, or -1 when #nextStartPosition was not yet called on the current doc.
intwidth()
Return the width of the match, which is typically used to sloppy freq.