java.lang.Object | |
↳ | org.apache.lucene.index.MultipleTermPositions |
Allows you to iterate over the TermPositions
for multiple Term
s as
a single TermPositions
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
MultipleTermPositions instance. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Frees associated resources.
| |||||||||||
Returns the current document number.
| |||||||||||
Returns the frequency of the term within the current document.
| |||||||||||
Not implemented.
| |||||||||||
Not implemented.
| |||||||||||
Checks if a payload can be loaded at this position.
| |||||||||||
Moves to the next pair in the enumeration.
| |||||||||||
Returns next position in the current document.
| |||||||||||
Not implemented.
| |||||||||||
Not implemented.
| |||||||||||
Not implemented.
| |||||||||||
Skips entries to the first beyond the current whose document number is
greater than or equal to target.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.io.Closeable
| |||||||||||
From interface
org.apache.lucene.index.TermDocs
| |||||||||||
From interface
org.apache.lucene.index.TermPositions
|
Creates a new MultipleTermPositions
instance.
IOException |
---|
Returns the current document number.
This is invalid until next()
is called for the first time.
Returns the frequency of the term within the current document.
This
is invalid until next()
is called for the first time.
Not implemented.
data | the array into which the data of this payload is to be stored, if it is big enough; otherwise, a new byte[] array is allocated for this purpose. |
---|---|
offset | the offset in the array into which the data of this payload is to be stored. |
Not implemented.
Checks if a payload can be loaded at this position.
Payloads can only be loaded once per call to
nextPosition()
.
Moves to the next pair in the enumeration.
Returns true iff there is such a next pair in the enumeration.
IOException |
---|
Not implemented.
Skips entries to the first beyond the current whose document number is greater than or equal to target.
Returns true iff there is such an entry.
Behaves as if written:
boolean skipTo(int target) { do { if (!next()) return false; } while (target > doc()); return true; }Some implementations are considerably more efficient than that.
IOException |
---|