java.lang.Object | ||
↳ | org.apache.lucene.search.spans.Spans | |
↳ | org.apache.lucene.search.spans.NearSpansUnordered |
Similar to NearSpansOrdered
, but for the unordered case.
Expert:
Only public for subclassing. Most implementations should not need this class
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the document number of the current match.
| |||||||||||
Returns the end position of the current match.
| |||||||||||
WARNING: The List is not necessarily in order of the the positions
| |||||||||||
Checks if a payload can be loaded at this position.
| |||||||||||
Move to the next match, returning true iff any such exists.
| |||||||||||
Skips to the first match beyond the current, whose document number is
greater than or equal to target.
| |||||||||||
Returns the start position of the current match.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.spans.Spans
| |||||||||||
From class
java.lang.Object
|
Returns the document number of the current match. Initially invalid.
Returns the end position of the current match. Initially invalid.
WARNING: The List is not necessarily in order of the the positions
byte[]
payloadsIOException |
---|
Checks if a payload can be loaded at this position.
Payloads can only be loaded once per call tonext()
.Move to the next match, returning true iff any such exists.
IOException |
---|
Skips to the first match beyond the current, whose document number is greater than or equal to target.
Returns true iff there is such a match.
Behaves as if written:
boolean skipTo(int target) { do { if (!next()) return false; } while (target > doc()); return true; }Most implementations are considerably more efficient than that.
IOException |
---|
Returns the start position of the current match. Initially invalid.